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
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
◆
geometry_geometrytype()
Datum geometry_geometrytype
(
PG_FUNCTION_ARGS
)
Definition at line
194
of file
lwgeom_ogc.c
.
195
{
196
GSERIALIZED
*gser;
197
text *type_text;
198
199
/* Read just the header from the toasted tuple */
200
gser = PG_GETARG_GSERIALIZED_HEADER(0);
201
202
/* Build a text type to store things in */
203
type_text = cstring_to_text(
stTypeName
[
gserialized_get_type
(gser)]);
204
205
PG_FREE_IF_COPY(gser, 0);
206
PG_RETURN_TEXT_P(type_text);
207
}
gserialized_get_type
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition:
gserialized.c:89
stTypeName
static char * stTypeName[]
Definition:
lwgeom_ogc.c:175
GSERIALIZED
Definition:
liblwgeom.h:443
References
gserialized_get_type()
, and
stTypeName
.
Here is the call graph for this function:
postgis
lwgeom_ogc.c
Generated by
1.9.1