<div dir="ltr">Thanks,<div>I tried the "rgrep" thing in geos folder, I had no idea some of PostGis C functions were not in GEOS.<br><br></div><div>Cheers,</div><div><br>Rémi-C</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/11/13 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Nov 13, 2013 at 12:45:46PM +0100, Rémi Cura wrote:<br>
> Hey List,<br>
> another question :<br>
> where is the exact code for the function ST_ClosestPoint?<br>
<br>
</div>ST_ClosestPoint is implemented in PostGIS, not GEOS:<br>
LWGEOM_closestpointpostgis/lwgeom_functions_basic.c<br>
<div class="im"><br>
> It seems that ST_LineInterpolatePoint is always correct, where<br>
> ST_ClosestPoint is sometime wrong.<br>
<br>
</div>ST_LineInterpolatePoint is also in PostGIS:<br>
LWGEOM_line_interpolate_point in postgis/lwgeom_functions_analytic.c<br>
<br>
How to find out yourself:<br>
<br>
Start from postgis.sql, find the signature, then grep the<br>
referenced C function name in postgis/*.c and follow up from there.<br>
<br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</blockquote></div><br></div>