PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ LWGEOM_get_srid()

Datum LWGEOM_get_srid ( PG_FUNCTION_ARGS  )

Definition at line 82 of file lwgeom_ogc.c.

References gserialized_get_srid(), LWGEOM_set_srid(), and PG_FUNCTION_INFO_V1().

83 {
85  int srid = gserialized_get_srid (geom);
86  PG_FREE_IF_COPY(geom,0);
87  PG_RETURN_INT32(srid);
88 }
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:69
Here is the call graph for this function: