Definition at line 805 of file lwin_wkt.c.
References COLLECTIONTYPE, LWGEOM::flags, FLAGS_GET_M, FLAGS_GET_Z, FLAGS_NDIMS, LWCOLLECTION::geoms, LW_FAILURE, lwcollection_as_lwgeom(), lwcollection_construct_empty(), lwgeom_as_lwcollection(), lwgeom_free(), lwgeom_is_empty(), LWCOLLECTION::ngeoms, PARSER_ERROR_MIXDIMS, PARSER_ERROR_OTHER, SET_PARSER_ERROR, SRID_UNKNOWN, LWGEOM::type, wkt_dimensionality(), and wkt_parser_set_dims().
Referenced by yyparse().
822 for ( i = 0 ; i < col->
ngeoms; i++ )
static int wkt_parser_set_dims(LWGEOM *geom, uint8_t flags)
Force the dimensionality of a geometry to match the dimensionality of a set of flags (usually derived...
void lwgeom_free(LWGEOM *geom)
#define PARSER_ERROR_MIXDIMS
static uint8_t wkt_dimensionality(char *dimensionality)
#define SRID_UNKNOWN
Unknown SRID value.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
#define SET_PARSER_ERROR(errno)
#define FLAGS_GET_M(flags)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
#define FLAGS_NDIMS(flags)
#define PARSER_ERROR_OTHER
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)