Average Line: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
mNo edit summary
m (use addoncmd template)
Line 2: Line 2:
It's possible to find "average" line(s) of input vector map in GRASS. It might be useful for averaging multiple GPS tracks of the same road (for example, with OpenStreetMap data).  
It's possible to find "average" line(s) of input vector map in GRASS. It might be useful for averaging multiple GPS tracks of the same road (for example, with OpenStreetMap data).  


Shell script to do the task: [http://grass.osgeo.org/wiki/GRASS_AddOns#v.to.averline v.to.averline].
Shell script to do the task: {{AddonCmd|v.to.averline}}.





Revision as of 09:51, 18 June 2012

It's possible to find "average" line(s) of input vector map in GRASS. It might be useful for averaging multiple GPS tracks of the same road (for example, with OpenStreetMap data).

Shell script to do the task: v.to.averline.


It works with simple algorithm stated here (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: