Definition at line 117 of file lwgeom_ogc.c.
123 static int maxtyplen = 20;
126 text_ob = palloc0(VARHDRSZ + maxtyplen);
127 result = VARDATA(text_ob);
132 strcpy(result,
"POINT");
134 strcpy(result,
"MULTIPOINT");
136 strcpy(result,
"LINESTRING");
138 strcpy(result,
"CIRCULARSTRING");
140 strcpy(result,
"COMPOUNDCURVE");
142 strcpy(result,
"MULTILINESTRING");
144 strcpy(result,
"MULTICURVE");
146 strcpy(result,
"POLYGON");
148 strcpy(result,
"TRIANGLE");
150 strcpy(result,
"CURVEPOLYGON");
152 strcpy(result,
"MULTIPOLYGON");
154 strcpy(result,
"MULTISURFACE");
156 strcpy(result,
"GEOMETRYCOLLECTION");
158 strcpy(result,
"POLYHEDRALSURFACE");
160 strcpy(result,
"TIN");
162 strcpy(result,
"UNKNOWN");
167 SET_VARSIZE(text_ob, strlen(result) + VARHDRSZ);
169 PG_FREE_IF_COPY(gser, 0);
171 PG_RETURN_TEXT_P(text_ob);
int gserialized_has_z(const GSERIALIZED *gser)
Check if a GSERIALIZED has a Z ordinate.
int gserialized_has_m(const GSERIALIZED *gser)
Check if a GSERIALIZED has an M ordinate.
uint32_t gserialized_max_header_size(void)
Returns the size in bytes to read from toast to get the basic information from a geometry: GSERIALIZE...
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define POLYHEDRALSURFACETYPE
References CIRCSTRINGTYPE, COLLECTIONTYPE, COMPOUNDTYPE, CURVEPOLYTYPE, gserialized_get_type(), gserialized_has_m(), gserialized_has_z(), gserialized_max_header_size(), LINETYPE, MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, POINTTYPE, POLYGONTYPE, POLYHEDRALSURFACETYPE, TINTYPE, TRIANGLETYPE, and ovdump::type.