[GRASS-user] How to split a line using points?
David Montoya
jdmonto0 at gmail.com
Thu Jun 14 13:04:57 PDT 2012
Thanks for all your suggestions, they help me to solve my problem
On Thu, Jun 14, 2012 at 2:24 PM, Micha Silver <micha at arava.co.il> wrote:
> On 06/14/2012 06:46 PM, David Montoya wrote:
>
> 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?
>
>
> I think that:
> v.edit <your line> tool=break coord=...
> will do that. If you're sure that the points indeed fall exactly on the
> line, then dump the coordinates to a text file (v.out.ascii) then loop thru
> that file, and feed the coords to v.edit, like so
> v.out.ascii <your points> out=points.txt
> while read x y; do
> v.edit <your line> tool=break coord=$x,$y cat=0-99999
> done < points.txt
>
> Be aware that the tool=break is actually breaking the line into two at
> each point. There's also tool=vertexadd if you only need to add a vertex
> along the line, rather than actually splitting it.
>
> --
> Micha
>
> Thanks in advance for your help
>
> --
> David Montoya González
> Ing. Forestal, Universidad Nacional de Colombia
> Laboratorio de Sistemas Complejos, UNAL Medellin
>
>
> This mail was received via Mail-SeCure System.
>
>
> _______________________________________________
> grass-user mailing listgrass-user at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user
>
>
> This mail was received via Mail-SeCure System.
>
>
>
>
>
> --
> Micha Silver
> GIS Consultant, Arava Development Co.http://www.surfaces.co.il
>
>
--
David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120614/567bbdd1/attachment.html>
More information about the grass-user
mailing list