PostGIS
3.4.0dev-r@@SVN_REVISION@@
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
c
d
f
g
i
l
m
p
q
w
Variables
a
b
c
d
f
g
h
i
l
n
o
p
r
s
t
u
v
x
y
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Properties
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
w
y
Typedefs
_
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
y
Enumerations
Enumerator
a
c
d
e
f
g
i
j
l
m
p
r
s
t
u
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Examples
►
PostGIS
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
◆
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