[GRASSLIST:1822] Re: Thinned line lenght

Markus Neteler neteler at geog.uni-hannover.de
Tue May 8 08:01:33 EDT 2001

On Mon, May 07, 2001 at 05:20:00PM +0200, Aldo Clerici wrote:
> Hi to everybody.
> Is there in grass a command or script to compute the lenght of thinned
> raster lines  considering the different lenght of the diagonal cells?
> Many thanks in advance
> Aldo Clerici

A possible way might be to use
on that raster lines. As r.line (currently) doesn't have a smooth function,
it might be a good idea to use v,support, v.digit afterwards. In v.digit you
find in EDIT-> v - Smooth poly-line a way to "smooth" the line.

Maybe also v.prune would do the job.

Finally v.report tells you the line lenght.

Hope this helps,


PS: It might be a good idea to have a new flag in r.line to create diagonal
    lines optionally instead of digitizing the cell borders.

More information about the grass-user mailing list