PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum geography_enforce_typmod ( PG_FUNCTION_ARGS  )

Definition at line 313 of file gserialized_typmod.c.

References postgis_valid_typmod().

314 {
315  GSERIALIZED *arg = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
316  int32 typmod = PG_GETARG_INT32(1);
317  /* We don't need to have different behavior based on explicitness. */
318  /* bool isExplicit = PG_GETARG_BOOL(2); */
319 
320  /* Check if geometry typmod is consistent with the supplied one. */
321  arg = postgis_valid_typmod(arg, typmod);
322 
323  PG_RETURN_POINTER(arg);
324 }
GSERIALIZED * postgis_valid_typmod(GSERIALIZED *gser, int32_t typmod)
Check the consistency of the metadata we want to enforce in the typmod: srid, type and dimensionality...

Here is the call graph for this function: