Force the dimensionality of a geometry to match the dimensionality of a set of flags (usually derived from a ZM WKT tag).
Definition at line 101 of file lwin_wkt.c.
102{
105 uint32_t i = 0;
106
107
108 if( ! geom )
110
113
115 {
117 {
120 {
123 }
124 break;
125 }
129 {
132 {
135 }
136 break;
137 }
139 {
141 for ( i = 0; i < poly->
nrings; i++ )
142 {
144 {
147 }
148 }
149 break;
150 }
152 {
154 for ( i = 0; i < poly->
nrings; i++ )
156 break;
157 }
158 default:
159 {
161 {
163 for ( i = 0; i < col->
ngeoms; i++ )
166 }
167 else
168 {
171 }
172 }
173 }
174
176}
int lwtype_is_collection(uint8_t type)
Determine whether a type number is a collection or not.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_Z(flags)
#define FLAGS_GET_M(flags)
#define FLAGS_SET_M(flags, value)
#define FLAGS_SET_Z(flags, value)
#define LWDEBUGF(level, msg,...)
static int wkt_parser_set_dims(LWGEOM *geom, lwflags_t flags)
Force the dimensionality of a geometry to match the dimensionality of a set of flags (usually derived...
References CIRCSTRINGTYPE, CURVEPOLYTYPE, POINTARRAY::flags, LWGEOM::flags, FLAGS_GET_M, FLAGS_GET_Z, FLAGS_SET_M, FLAGS_SET_Z, LWCOLLECTION::geoms, LINETYPE, LW_FAILURE, LW_SUCCESS, LWDEBUGF, lwtype_is_collection(), LWCOLLECTION::ngeoms, LWPOLY::nrings, LWCURVEPOLY::nrings, LWPOINT::point, LWLINE::points, POINTTYPE, POLYGONTYPE, LWPOLY::rings, LWCURVEPOLY::rings, TRIANGLETYPE, LWGEOM::type, and wkt_parser_set_dims().
Referenced by wkt_parser_collection_finalize(), wkt_parser_compound_finalize(), wkt_parser_curvepolygon_finalize(), wkt_parser_polygon_finalize(), and wkt_parser_set_dims().