Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 polygone classes (1 and 2). Inside the polygons are holes (white). Now I want to combine them with the polygon in witch the holes are. Understand? Sorry for that bad english...

enter image description here

The white holes have to be green or blue, like the sourrounding polygon. Any idea? Thanks!

share|improve this question
I think it is called "remove the holes". I could have told you how to do it with MapInfo, but don't know qgis. – Uffe Kousgaard May 21 '12 at 14:10
Looking at the number of holes, I assume you want an automated method? – MappaGnosis May 21 '12 at 14:12
right! ;) this is just 10% of the whole map – MAP May 21 '12 at 14:16

If you have a polygon deliminating your study area extent I would use the Difference tool (Vector > Geoprocessing Tools > Difference) to create an inverse set of polygons then union this with your layer above, then dissolve.

In ArcGIS, you would undertake an Erase operation, union and then dissolve.

Alternatively, you could convert to raster and reclassify.

share|improve this answer

Paul Munday gives a solution. Alternatively you could code this as a Python script using GDAL/OGR and iterate over your polygons, pullout their geometry, drop all the interior ring (i.e. just take the first linear ring per polygon) and save to a new shapefile.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.