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!

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

2 Answers 2


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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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