[GRASS-user] <v.to.averline> -- script to find "averaging" line(s) of input vector map

Dear GRASS’ers!

I wrote shell script to find “average” line(s) of input vector map.

Link: https://raw.github.com/amuriy/GRASS-scripts/a7df12d996abfe6461f509fce6feb6c869af2d5e/v.to.averline

It works with simple algorithm stated here (with 2 methods – average distance to vectors sampling OR average number of vectors segments).
Results differ depending on vector type: lines/boundaries or polygons. NOTE: Lines/boundaries must have the same direction.

Example picture in includes.

(attachments)

averline_results.png

Il 11/05/2012 13:03, Alexander Muriy ha scritto:

I wrote shell script to find "average" line(s) of input vector map.

Example picture in includes.

quite nice, thanks. this solves a long-standing problem, for which I never found a
satisfactory solution. very good for averaging multiple GPS tracks of the same road
(I think OSMers will appreciate this).
All the best.
--
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc

Il 11/05/2012 13:05, Paolo Cavallini ha scritto:

Il 11/05/2012 13:03, Alexander Muriy ha scritto:

I wrote shell script to find "average" line(s) of input vector map.

BTW: why not adding it to GRASS trunk?

--
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc