[GRASSLIST:4928] Identifying (or removing) island polygons

David Mahoney mahoneyd at unbc.ca
Tue Nov 23 21:05:48 EST 2004


I am trying to build spaghetti data in GRASS 5.7. The input data is lines 
with attributes, and I want to end with polygons. I have managed to build 
the lines to polygons and use v.distance to attach the attributes of the 
nearest lines to the centroids in the polygon layer. However, there does 
not seem to be a convenient way to remove/reclass the island polygons. I 
do not want the islands to have the attributes of the surrounding lines, 
rather they are holes in the polygon layer. I can use some procedure where 
I run every attribute class against every other class in v.select to 
determine the wholly enclosed polygons, but I was hoping for a more 
elegant solution. Any thoughts?

Island polygons ID might be a nice option for v.to.db or v.clean, yes?

-- 
Dave




More information about the grass-user mailing list