Average Line: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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 da...") |
m (remove hardcoded version specific urls, use latest version) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Shell script to do the task: | It's possible to find "average" line(s) of input vector map in GRASS GIS. It might be useful for averaging multiple GPS tracks of the same road (for example, with OpenStreetMap data). | ||
Shell script to do the task: {{AddonCmd|v.to.averline}}. | |||
Line 14: | Line 15: | ||
[[File:Averline_results.png|800px]] | [[File:Averline_results.png|800px]] | ||
=== Other options === | |||
See {{cmd|v.voronoi}} | |||
v.voronoi -s input=myarea@user1 output=centerline thin=-1 | |||
[[Category:FAQ]] | |||
[[Category: Vector]] |
Latest revision as of 10:44, 4 December 2018
It's possible to find "average" line(s) of input vector map in GRASS GIS. 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:
Other options
See v.voronoi
v.voronoi -s input=myarea@user1 output=centerline thin=-1