Dear GRASS&#39;ers!<br><br>I wrote shell script to find &quot;average&quot; line(s) of input vector map. <br><br>Link: <a href="https://raw.github.com/amuriy/GRASS-scripts/a7df12d996abfe6461f509fce6feb6c869af2d5e/v.to.averline">https://raw.github.com/amuriy/GRASS-scripts/a7df12d996abfe6461f509fce6feb6c869af2d5e/v.to.averline</a><br>
<br>It works with simple algorithm stated <a href="http://forums.arcgis.com/threads/26757-quot-Averaging-quot-lines?p=88781&amp;viewfull=1#post88781">here</a> (with 2 methods -- average distance to vectors sampling OR average number of vectors segments).  <br>
Results differ depending on vector type: lines/boundaries or polygons. NOTE: Lines/boundaries must have the same direction. <br><br>Example picture in includes.<br><br><br><br>