PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum LWGEOM_get_srid ( PG_FUNCTION_ARGS  )

Definition at line 83 of file lwgeom_ogc.c.

References gserialized_get_srid().

84 {
85  GSERIALIZED *geom=(GSERIALIZED *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
86  int srid = gserialized_get_srid (geom);
87  PG_FREE_IF_COPY(geom,0);
88  PG_RETURN_INT32(srid);
89 }
LWGEOM * geom
int32_t gserialized_get_srid(const GSERIALIZED *s)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...
Definition: g_serialized.c:70

Here is the call graph for this function: