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

◆ geography_typmod_in()

Datum geography_typmod_in ( PG_FUNCTION_ARGS  )

Definition at line 338 of file gserialized_typmod.c.

339{
340 ArrayType *arr = (ArrayType *) DatumGetPointer(PG_GETARG_DATUM(0));
341 int32 typmod = gserialized_typmod_in(arr, LW_TRUE);
342 int32_t srid = TYPMOD_GET_SRID(typmod);
343 /* Check the SRID is legal (geographic coordinates) */
344 srid_check_latlong(srid);
345
346 PG_RETURN_INT32(typmod);
347}
static uint32 gserialized_typmod_in(ArrayType *arr, int is_geography)
#define TYPMOD_GET_SRID(typmod)
Macros for manipulating the 'typemod' int.
Definition liblwgeom.h:192
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
unsigned int int32
Definition shpopen.c:54

References gserialized_typmod_in(), LW_TRUE, and TYPMOD_GET_SRID.

Here is the call graph for this function: