PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
postgis_typmod_dims()
Datum postgis_typmod_dims
(
PG_FUNCTION_ARGS
)
Definition at line
389
of file
gserialized_typmod.c
.
390
{
391
int32
typmod = PG_GETARG_INT32(0);
392
int32
dims = 2;
393
if
( typmod < 0 )
394
PG_RETURN_NULL();
/* unconstrained */
395
if
(
TYPMOD_GET_Z
(typmod) )
396
dims++;
397
if
(
TYPMOD_GET_M
(typmod) )
398
dims++;
399
PG_RETURN_INT32(dims);
400
}
TYPMOD_GET_M
#define TYPMOD_GET_M(typmod)
Definition:
liblwgeom.h:212
TYPMOD_GET_Z
#define TYPMOD_GET_Z(typmod)
Definition:
liblwgeom.h:210
int32
unsigned int int32
Definition:
shpopen.c:273
References
TYPMOD_GET_M
, and
TYPMOD_GET_Z
.
postgis
gserialized_typmod.c
Generated by
1.9.1