<div dir="ltr"><div><div><div><div><div>This is, in fact, a long awaited feature. It is/was present in the Sextante version used by gvSIG: <br><br>"""<br>Split lines with points layer<br><br>Description<br>  Parameters<br>   - Capa_de_lineas[Vector layer - Line]: <br>   - Points layer[Vector layer - Point]: <br>   - Tolerance[Numerical value]: <br>   - Method[Selection]: <br><br>  Outputs<br>   - Split lines[Vector layer - Line]: <br><br>Command line<br>Usage: runalg( "splitlineswithpoints",<br>                LINES[Vector Layer],<br>                POINTS[Vector Layer],<br>                TOLERANCE[Numerical Value],<br>                METHOD[Selection],<br>                RESULT[output vector layer],<br>              );<br>"""<br><br>but was never ported to QGIS Processing. <br><br></div>Is has, at least, two feature requests for that:<br><a href="https://hub.qgis.org/issues/5040">https://hub.qgis.org/issues/5040</a><br><a href="https://hub.qgis.org/issues/9469">https://hub.qgis.org/issues/9469</a> <br><br></div>Giovanni, maybe you can update your feature request for a future version, raising the priority.<br><br></div>Thanks!<br><br></div>Best regards,<br></div>Pedro Venâncio<br><br><br><div><div><div><br><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-25 9:32 GMT+00:00 Giovanni Manghi <span dir="ltr"><<a href="mailto:giovanni.manghi@gmail.com" target="_blank">giovanni.manghi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pierluigi, buongiorno<br>
<span class=""><br>
> I have some difficulties to figure out how to split line at specific distance from the beginning.<br>
> I need to split a single line into several lines at specific distances.<br>
><br>
><br>
> I'm able to get the point at specific distance using the intersection function of QgsGeometry but I'm in trouble on how to create the new geometry.<br>
> I looked at the split function but I'm not sure it could help me.<br>
><br>
><br>
> Do you have some code to share on how to split a line into several lines at specified distances?<br>
<br>
</span>doing this operation the postgis/spatialite way is tricky because the<br>
st_split function won't work if you don't have a node/vertex where you<br>
need do the split. See for example this workflow<br>
<br>
<a href="https://mygisnotes.wordpress.com/2017/01/01/split-lines-with-points-the-postgis-way/" rel="noreferrer" target="_blank">https://mygisnotes.wordpress.<wbr>com/2017/01/01/split-lines-<wbr>with-points-the-postgis-way/</a><br>
<br>
I had to use it (does not means that is the best way) to solve a<br>
specific problem here. I used PostGIS because in QGIS/Processing do<br>
not seems there is yet any tool (not even in external providers? I<br>
maybe wrong, I just could not find any) that allow do this operation.<br>
<br>
cheers!<br>
<br>
-- Giovanni --<br>
______________________________<wbr>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br></div>