[geos-devel] code for ST_ClosestPoint

Rémi Cura remi.cura at gmail.com
Wed Nov 13 23:59:16 PST 2013


Thanks,
I tried the "rgrep" thing in geos folder, I had no idea some of PostGis C
functions were not in GEOS.

Cheers,

Rémi-C


2013/11/13 Sandro Santilli <strk at keybit.net>

> On Wed, Nov 13, 2013 at 12:45:46PM +0100, Rémi Cura wrote:
> > Hey List,
> > another question :
> > where is the exact code for the function ST_ClosestPoint?
>
> ST_ClosestPoint is implemented in PostGIS, not GEOS:
> LWGEOM_closestpointpostgis/lwgeom_functions_basic.c
>
> > It seems that ST_LineInterpolatePoint is always correct, where
> > ST_ClosestPoint is sometime wrong.
>
> ST_LineInterpolatePoint is also in PostGIS:
> LWGEOM_line_interpolate_point in postgis/lwgeom_functions_analytic.c
>
> How to find out yourself:
>
> Start from postgis.sql, find the signature, then grep the
> referenced C function name in postgis/*.c and follow up from there.
>
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20131114/bc8d98e2/attachment.html>


More information about the geos-devel mailing list