[GRASS-dev] v.clean tool=rmline thresh= ?
Hamish
hamish_b at yahoo.com
Tue Feb 5 23:21:20 EST 2008
Hamish:
> > any reason why 'v.clean tool=rmline' doesn't respect thresh= to
> > remove small lines? (like rmarea) Or is it just a matter of writing
> > the code?
> > http://trac.osgeo.org/grass/changeset/24404
Martin:
> rmline should remove only collapsed lines/boundaries (zero-length).
> To clean map geometry.
>
> > workaround:
> > v.db.addcol column='DOUBLE length'
> > v.to.db option=length column=length
> > v.extract where='length > $thresh'
>
> or better
>
> to remove all lines/boundaries shorter than $thresh
> v.edit a1 tool=delete query=length type=line,boundary thresh=-$thresh
Excellent. Thanks.
> longer than $thresh
> v.edit a1 tool=delete query=length type=line,boundary thresh=-$thresh
(did you mean "thresh=$thresh" or "thresh=+$thresh" ?)
> It would be possible to modify rmline tool in v.clean to be
> thresh-sensitive. Since v.edit do the job in the better way I think
> we can leave rmline as it is.
ok, but it's a bit inconsistent.
Hamish
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
More information about the grass-dev
mailing list