Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.