[postgis-devel] Can I call LWGEOM_x_point directly from another stored procedure?

Paul Ramsey pramsey at cleverelephant.ca
Sat Nov 16 20:44:15 PST 2013


Have you checked out the DirectFuctionCall PgSQL macros? Might do what you want. 


-- 
Paul Ramsey
http://cleverelephant.ca
http://postgis.net


On Saturday, November 16, 2013 at 8:39 PM, Stephen Woodbridge wrote:

> Hi strk,
> 
> I would like to be able to pass a PostGIS point or point[] to a 
> pgRouting function and I'm wondering if is it is possible to directly 
> call LWGEOM_x_point() and somehow pass on of my args to that?
> 
> Basically, I would like a simple way to get x, y, and srid from a point. 
> I guess I can clone the code from LWGEOM_x_point into a function to 
> extract those.
> 
> Do I need to do anything to initialize stuff for postgis in my function?
> 
> Thanks,
> -Steve
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org (mailto:postgis-devel at lists.osgeo.org)
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel






More information about the postgis-devel mailing list