[GRASS-user] eliminate some lines

Moritz Lennert mlennert at club.worldonline.be
Thu Nov 2 09:06:22 EST 2006


temiz wrote:
> Moritz Lennert wrote:
>> temiz wrote:
>>> /*hello
>>>
>>> I  couldn't do with v.clean what I wanted to do.
>>> I want to eliminate all lines whose their langth are under 20 m.
>>>
>>> what is the solution ?
>>
>>
>> not tested:
>>
>> v.to.db map=Original option=length type=line col=linelength units=me
>> v.extract input=Original output=Original20 where="linelength>20"
>>
>> Moritz
>>
> thank you Moritz and Markus
> 
> I solved this problem ( grass is really capable).
> 
> When I looked at v.to.db, I thought whether I could calculate
> the "length of a polygon" as well.

Depends on the polygon. If it defined as a boundary, then try setting
type=boundary and option=length

If it is an area then type=area and option=perimeter

Moritz




More information about the grass-user mailing list