PostGIS
3.7.0dev-r@@SVN_REVISION@@
◆
geometry_geometrytype()
Datum geometry_geometrytype
(
PG_FUNCTION_ARGS
)
Definition at line
198
of file
lwgeom_ogc.c
.
199
{
200
GSERIALIZED
*gser;
201
text *type_text;
202
203
/* Read just the header from the toasted tuple */
204
gser = PG_GETARG_GSERIALIZED_HEADER(0);
205
206
/* Build a text type to store things in */
207
type_text = cstring_to_text(
stTypeName
[
gserialized_get_type
(gser)]);
208
209
PG_FREE_IF_COPY(gser, 0);
210
PG_RETURN_TEXT_P(type_text);
211
}
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:118
stTypeName
static char * stTypeName[]
Definition:
lwgeom_ogc.c:179
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