[GRASS-user] How to split a line using points?

Alexander Muriy amuriy at gmail.com
Thu Jun 14 12:08:19 PDT 2012


------------------------------------------------------------

>
> I have points over a line and i need to split the line where the points are
> located. The points aren't at the same distance to each other. Any idea how
> to do that?
>
>

If your points lie exactly on the line, you may do so (in Linux with bash) :

v.out.ascii format=point in=pts --q | cut -d'|' -f1,2 | tr '|' ',' | while
read COOR; do v.edit map=line tool=break coords=$COOR; done

------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120614/b2344d37/attachment.html>


More information about the grass-user mailing list