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

maplabs at light42.com maplabs at light42.com
Sat Nov 16 21:09:38 PST 2013


call st_asEWKT( geom )  and string parse the result

--
Brian M Hamlin
OSGeo California Chapter
blog.light42.com

On Sat, 16 Nov 2013 23:39:13 -0500, Stephen Woodbridge 
<woodbri at swoodbridge.com> 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
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-devel
>
>





More information about the postgis-devel mailing list