PostGIS
3.4.0dev-r@@SVN_REVISION@@
◆
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