[GRASS-user] Filling holes in polygons

Hamish hamish_nospam at yahoo.com
Thu Nov 22 03:13:00 EST 2007


Jaros³aw Jasiewicz wrote:
> The problem is simple:
> If I want to remove small single areas I use v.to.db to upload areas to 
> database and next extract poligons with area grater than thereeshols
> 
> But how to perform opposite operation:
> I have polygnos with some holes. I would like remove the smalllest (not 
> all)


the task is to remove small holes, correct?

the vector engine can certainly do it, but I don't know what module frontend to
them could do it. some ideas:

'v.clean tool=rmarea' may help to remove small areas 

if you could give the holes centroids you could v.clean remove small areas +
create a error= map, then use v.overlay to wipe out from the original?
v.dissolve to get rid of left over boundaries (v.distance to set hole's cat
from nearest area first?)

The SQL approach is interesting.

run v.buffer then see which features disappear?

note GRASS sometimes calls holes in areas "islands".


Hamish



      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


More information about the grass-user mailing list