PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ geometry_enforce_typmod()

Datum geometry_enforce_typmod ( PG_FUNCTION_ARGS  )

Definition at line 348 of file gserialized_typmod.c.

References PG_FUNCTION_INFO_V1(), postgis_typmod_type(), and postgis_valid_typmod().

Referenced by geography_enforce_typmod().

349 {
350  GSERIALIZED *arg = PG_GETARG_GSERIALIZED_P(0);
351  int32 typmod = PG_GETARG_INT32(1);
352  /* We don't need to have different behavior based on explicitness. */
353  /* bool isExplicit = PG_GETARG_BOOL(2); */
354 
355  /* Check if geometry typmod is consistent with the supplied one. */
356  arg = postgis_valid_typmod(arg, typmod);
357 
358  PG_RETURN_POINTER(arg);
359 }
unsigned int int32
Definition: shpopen.c:273
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:
Here is the caller graph for this function: