PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum geography_typmod_in ( PG_FUNCTION_ARGS  )

Definition at line 292 of file gserialized_typmod.c.

References gserialized_typmod_in(), LW_TRUE, and TYPMOD_GET_SRID.

293 {
294  ArrayType *arr = (ArrayType *) DatumGetPointer(PG_GETARG_DATUM(0));
295  int32 typmod = gserialized_typmod_in(arr, LW_TRUE);
296  int srid = TYPMOD_GET_SRID(typmod);
297  /* Check the SRID is legal (geographic coordinates) */
298  srid_is_latlong(fcinfo, srid);
299 
300  PG_RETURN_INT32(typmod);
301 }
static uint32 gserialized_typmod_in(ArrayType *arr, int is_geography)
unsigned int int32
Definition: shpopen.c:273
#define TYPMOD_GET_SRID(typmod)
Macros for manipulating the 'typemod' int.
Definition: liblwgeom.h:164
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75

Here is the call graph for this function: