Definition at line 367 of file gserialized_typmod.c.
References lwtype_name(), PG_FUNCTION_INFO_V1(), postgis_typmod_dims(), s, ovdump::type, TYPMOD_GET_M, TYPMOD_GET_TYPE, and TYPMOD_GET_Z.
Referenced by geometry_enforce_typmod().
369 int32 typmod = PG_GETARG_INT32(0);
371 char *
s = (
char*)palloc(64);
376 if ( typmod < 0 || type == 0 )
377 ptr += sprintf(ptr,
"Geometry");
383 ptr += sprintf(ptr,
"%s",
"Z");
387 ptr += sprintf(ptr,
"%s",
"M");
389 stext = cstring2text(s);
391 PG_RETURN_TEXT_P(stext);
#define TYPMOD_GET_TYPE(typmod)
#define TYPMOD_GET_M(typmod)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define TYPMOD_GET_Z(typmod)