PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ geography_typmod_in()

Datum geography_typmod_in ( PG_FUNCTION_ARGS  )

Definition at line 284 of file gserialized_typmod.c.

References geometry_typmod_in(), gserialized_typmod_in(), LW_TRUE, PG_FUNCTION_INFO_V1(), and TYPMOD_GET_SRID.

Referenced by gserialized_typmod_in().

285 {
286  ArrayType *arr = (ArrayType *) DatumGetPointer(PG_GETARG_DATUM(0));
287  uint32 typmod = gserialized_typmod_in(arr, LW_TRUE);
288  int srid = TYPMOD_GET_SRID(typmod);
289  /* Check the SRID is legal (geographic coordinates) */
290  srid_is_latlong(fcinfo, srid);
291 
292  PG_RETURN_INT32(typmod);
293 }
static uint32 gserialized_typmod_in(ArrayType *arr, int is_geography)
#define TYPMOD_GET_SRID(typmod)
Macros for manipulating the 'typemod' int.
Definition: liblwgeom.h:149
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
Here is the call graph for this function:
Here is the caller graph for this function: