<div dir="ltr"><div>Hi don't think to st_contains because</div><div> </div><div>SELECT line,point, ST_Line_Locate_Point(geom_line, geom_point)</div><div> </div><div>give this otput:</div><div> </div><div>7646;11764;0.0983820617751394<br>
7646;11769;0.962087766284734<br>7646;11762;0.231570267802357<br></div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/28 Rémi Cura <span dir="ltr"><<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You may want to split not with point but with the projected point one line<div>(use <a href="http://postgis.refractions.net/docs/ST_ClosestPoint.html" target="_blank">http://postgis.refractions.net/docs/ST_ClosestPoint.html</a>)</div>

<div>If it is not enough, you may want to translate all your geometries to reduce the number of digits in coordinates.<br>Another possibility is to use ST_Snap to snap line to point (won't work the other way)</div><div>

<br></div><div>Cheers,</div><div>Rémi-C</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/28 Nicolas Ribot <span dir="ltr"><<a href="mailto:nicolas.ribot@gmail.com" target="_blank">nicolas.ribot@gmail.com</a>></span><br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Hi,<br>
<br>
The points are not on the line, probably due to rounding errors.<br>
<br>
st_contains(line, point) returns false.<br>
<span><font color="#888888"><br>
Nicolas<br>
</font></span><div><div><br>
On 28 October 2013 18:07, franco base <<a href="mailto:frenk.calza@gmail.com" target="_blank">frenk.calza@gmail.com</a>> wrote:<br>
> Hi.<br>
> I have a set of linestring and point on linestring.<br>
> I want cut the linestring on the point.<br>
> I can have n points for one linestring,<br>
> so I use ST_Split<br>
> (insted of ST_Line_Interpolate_Point and ST_Line_Substring)<br>
> but it doesn't work.<br>
><br>
> line;geom_line;point;geom_point<br>
> 7646;"0102000020BB0B000006000000A4703D0A471F37412D211F04AF335341FAEDEBE0491F3741325530C2AE335341BD5296014F1F37418FC2F578AE3353414694F606521F3741D2DEE07BAE3353412D211F74541F37418FC2F578AE33534123B9FC675020374112143FF6BC335341";11764;"0101000020BB0B00005713362F611F37410D996234AF335341"<br>


> 7646;"0102000020BB0B000006000000A4703D0A471F37412D211F04AF335341FAEDEBE0491F3741325530C2AE335341BD5296014F1F37418FC2F578AE3353414694F606521F3741D2DEE07BAE3353412D211F74541F37418FC2F578AE33534123B9FC675020374112143FF6BC335341";11769;"0101000020BB0B00005EF0DD584620374139BF2762BC335341"<br>


> 7646;"0102000020BB0B000006000000A4703D0A471F37412D211F04AF335341FAEDEBE0491F3741325530C2AE335341BD5296014F1F37418FC2F578AE3353414694F606521F3741D2DEE07BAE3353412D211F74541F37418FC2F578AE33534123B9FC675020374112143FF6BC335341";11762;"0101000020BB0B0000A5CBC785841F374156A2A33CB1335341"<br>


><br>
> ST_GeometryType(St_Split(geom_line, geom_point))<br>
> give "ST_GeometryCollection"<br>
><br>
> but<br>
><br>
> (ST_Dump(ST_Split(geom_line, geom_point))).geom<br>
><br>
> return only 3 linestring (one for record) and the geometry is egual to<br>
> geom_line<br>
><br>
><br>
> thanks.<br>
><br>
> fb<br>
><br>
</div></div><div><div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>