[postgis-devel] lwgeom_getsrid()

Bryce L Nordgren bnordgren at gmail.com
Wed Aug 10 17:55:11 PDT 2011


/*
 * get the SRID from the LWGEOM
 * none present => -1
 */
extern int lwgeom_getsrid(uchar *serialized);

I'm getting a little turned around with all the different forms I can find
geometries in. What is (uchar *) and how does it relate to PG_LWGEOM, LWGEOM
and friends? Specifically, if I have a (LWGEOM *), how do I get a (uchar *)?
This seems to be the only "accessor" method which doesn't take (LWGEOM *).

Bryce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20110811/5f5a0103/attachment.html>


More information about the postgis-devel mailing list