PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ geography_enforce_typmod()

Datum geography_enforce_typmod ( PG_FUNCTION_ARGS  )

Definition at line 319 of file gserialized_typmod.c.

320 {
321  GSERIALIZED *arg = PG_GETARG_GSERIALIZED_P(0);
322  int32 typmod = PG_GETARG_INT32(1);
323  /* We don't need to have different behavior based on explicitness. */
324  /* bool isExplicit = PG_GETARG_BOOL(2); */
325 
326  /* Check if geometry typmod is consistent with the supplied one. */
327  arg = postgis_valid_typmod(arg, typmod);
328 
329  PG_RETURN_POINTER(arg);
330 }
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...
unsigned int int32
Definition: shpopen.c:273

References postgis_valid_typmod().

Here is the call graph for this function: