<div dir="ltr"><div><div><div><div><div><div>Hey List,<br></div>here is a link <a href="https://github.com/Remi-C/PPPP_utilities/blob/master/postgis/rc_Split_Line_By_Points.sql">a link</a> to a working implementation of ST_Split((multi)line,(multi)point).<br>
</div>The current ST_Split is not working correctly with points due to precision issues (and it is not working with multi ofc).<br><br></div>The proposed function hacks the Curvilinear api (<a href="http://postgis.refractions.net/docs/ST_Line_Locate_Point.html">http://postgis.refractions.net/docs/ST_Line_Locate_Point.html</a>, etc), in order to escape the precision issue that plagues all point related stuff in postgis.<br>
<br></div>Tolerance is fully supported (no segment too small can be generated with a filtering on split point, only split if close enough).<br><br></div><div>I didn't benchmarked it, but I would expect it to be way slower than the C (non-working) function. This is totally non-optimal but is temporary until the necessary changes are made on ST_Split.<br>
<br></div><div>Function is tested for 2.0 <br></div><div><br></div>Cheers,<br></div>Rémi-C<br></div>