PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ LWGEOM_get_srid()

Datum LWGEOM_get_srid ( PG_FUNCTION_ARGS  )

Definition at line 101 of file lwgeom_ogc.c.

102{
103 GSERIALIZED *geom = PG_GETARG_GSERIALIZED_HEADER(0);
104 int32_t srid = gserialized_get_srid(geom);
105 PG_FREE_IF_COPY(geom,0);
106 PG_RETURN_INT32(srid);
107}
int32_t gserialized_get_srid(const GSERIALIZED *g)
Extract the SRID from the serialized form (it is packed into three bytes so this is a handy function)...

References gserialized_get_srid().

Here is the call graph for this function: