PostGIS
3.4.0dev-r@@SVN_REVISION@@
◆
postgis_typmod_dims()
Datum postgis_typmod_dims
(
PG_FUNCTION_ARGS
)
Definition at line
438
of file
gserialized_typmod.c
.
439
{
440
int32
typmod = PG_GETARG_INT32(0);
441
int32
dims = 2;
442
if
( typmod < 0 )
443
PG_RETURN_NULL();
/* unconstrained */
444
if
(
TYPMOD_GET_Z
(typmod) )
445
dims++;
446
if
(
TYPMOD_GET_M
(typmod) )
447
dims++;
448
PG_RETURN_INT32(dims);
449
}
TYPMOD_GET_M
#define TYPMOD_GET_M(typmod)
Definition:
liblwgeom.h:198
TYPMOD_GET_Z
#define TYPMOD_GET_Z(typmod)
Definition:
liblwgeom.h:196
int32
unsigned int int32
Definition:
shpopen.c:54
References
TYPMOD_GET_M
, and
TYPMOD_GET_Z
.
postgis
gserialized_typmod.c
Generated by
1.9.1