<html style="direction: ltr;">
<head>
<meta content="text/html; charset=windows-1255"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="preferred-charset"
bgcolor="#FFFFFF" text="#000000">
On 06/14/2012 06:46 PM, David Montoya wrote:
<blockquote
cite="mid:CAOzQa1uBM_ReCH8Sas3CDnHp=_EDr_xX2NB2pqdXo3Eps4opgQ@mail.gmail.com"
type="cite">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?<br clear="all">
<br>
</blockquote>
<br>
I think that:<br>
v.edit <your line> tool=break coord=...<br>
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<br>
v.out.ascii <your points> out=points.txt<br>
while read x y; do<br>
v.edit <your line> tool=break coord=$x,$y cat=0-99999<br>
done < points.txt<br>
<br>
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.<br>
<br>
-- <br>
Micha<br>
<br>
<blockquote
cite="mid:CAOzQa1uBM_ReCH8Sas3CDnHp=_EDr_xX2NB2pqdXo3Eps4opgQ@mail.gmail.com"
type="cite">Thanks in advance for your help<br>
<br>
-- <br>
David Montoya González<br>
Ing. Forestal, Universidad Nacional de Colombia<br>
Laboratorio de Sistemas Complejos, UNAL Medellin<br>
<br>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">--
Micha Silver
GIS Consultant, Arava Development Co.
<a class="moz-txt-link-freetext" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a></pre>
</body>
</html>