PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ LWGEOM_set_srid()

Datum LWGEOM_set_srid ( PG_FUNCTION_ARGS  )

Definition at line 107 of file lwgeom_ogc.c.

References gserialized_set_srid(), LWGEOM_getTYPE(), and PG_FUNCTION_INFO_V1().

Referenced by LWGEOM_get_srid().

108 {
109  GSERIALIZED *g = (GSERIALIZED *)PG_DETOAST_DATUM_COPY(PG_GETARG_DATUM(0));
110  int srid = PG_GETARG_INT32(1);
111  gserialized_set_srid(g, srid);
112  PG_RETURN_POINTER(g);
113 }
void gserialized_set_srid(GSERIALIZED *s, int32_t srid)
Write the SRID into the serialized form (it is packed into three bytes so this is a handy function)...
Definition: g_serialized.c:117
Here is the call graph for this function:
Here is the caller graph for this function: