<div dir="ltr">You might check out the Python library Shapely (which wraps GEOS), it has a split method in it:<div><br></div><div><a href="https://shapely.readthedocs.io/en/stable/manual.html#splitting">https://shapely.readthedocs.io/en/stable/manual.html#splitting</a><br></div><div><br></div><div>P</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 23, 2021 at 9:59 AM Chang Liao <<a href="mailto:changliao.climate@gmail.com">changliao.climate@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Hi, GDALers,</div><div><br></div><div>I have a GDAL Python API question, i want to find some function similar to the ArcGIS tool:</div><div><a href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/splitting-lines-at-intersections.htm" target="_blank">https://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-existing-features/splitting-lines-at-intersections.htm</a><br></div><div><br></div><div>But it seems there is no such existing function ready for use. I put some details of the question on the GIS stackexchange here:</div><div dir="ltr"><a href="https://gis.stackexchange.com/questions/394732/python-gdal-split-polyline-by-intersection" target="_blank">https://gis.stackexchange.com/questions/394732/python-gdal-split-polyline-by-intersection</a></div><div dir="ltr">Can anyone provide some suggestions?</div><div dir="ltr"><br></div><div dir="ltr">Thank you!<br clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><font style="color:rgb(80,0,80)" face="times new roman, serif">Best Regards!</font><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)"><font face="times new roman, serif" color="#3d85c6"><b><br></b></font></span><div dir="ltr" style="font-size:12.8px"><span><font face="times new roman, serif"><b><font color="#674ea7">Chang Liao, PhD</font><br></b></font></span></div><span style="font-size:12.8px"><div><font face="times new roman, serif" color="#3d85c6"><b>Earth Scientist, Atmospheric Sciences & Global Change Division</b></font></div><div dir="ltr"><font face="times new roman, serif" color="#45818e"><b>Pacific Northwest National Laboratory, WA, USA.</b></font></div><div dir="ltr"><b style="font-family:"times new roman",serif;font-size:12.8px"><font color="#6aa84f">Email: <a href="mailto:changliao.climate@gmail.com" target="_blank"><u>changliao.climate</u> at gmail.com</a>  or  <a href="mailto:chang.liao@pnnl.gov" target="_blank">chang.liao at pnnl.gov</a></font></b><br></div><div dir="ltr"><font face="times new roman, serif" color="#f1c232"><b>Personal Website: <a href="https://www.changliao.us/" target="_blank">https://www.changliao.us</a></b></font></div><div dir="ltr"><b style="font-size:12.8px;font-family:"times new roman",serif"><font color="#cc0000">Lab Website: <a href="https://www.pnnl.gov/science/staff/staff_info.asp?staff_num=9326" target="_blank">www.pnnl.gov</a></font></b><br></div></span></div><div dir="ltr"><div style="color:rgb(80,0,80)"><font face="times new roman, serif" color="#3d85c6"><b><br></b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>