COLLECTION, MULTIPOINTTYPE, MULTILINETYPE, MULTIPOLYGONTYPE.
Definition at line 452 of file lwin_twkb.c.
References twkb_parse_state::has_idlist, twkb_parse_state::has_m, twkb_parse_state::has_z, twkb_parse_state::is_empty, lwcollection_add_lwgeom(), lwcollection_construct_empty(), LWDEBUG, LWDEBUGF, lwerror(), lwgeom_from_twkb_state(), twkb_parse_state::lwtype, SRID_UNKNOWN, twkb_parse_state_uvarint(), and twkb_parse_state_varint_skip().
Referenced by lwgeom_from_twkb_state().
458 LWDEBUG(2,
"Entering lwcollection_from_twkb_state");
466 LWDEBUGF(4,
"Number of geometries %d",ngeoms);
471 for ( i = 0; i < ngeoms; i++ )
475 for ( i = 0; i < ngeoms; i++ )
480 lwerror(
"Unable to add geometry (%p) to collection (%p)", geom, col);
#define LWDEBUG(level, msg)
#define SRID_UNKNOWN
Unknown SRID value.
static uint64_t twkb_parse_state_uvarint(twkb_parse_state *s)
LWGEOM * lwgeom_from_twkb_state(twkb_parse_state *s)
Internal function declarations.
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
#define LWDEBUGF(level, msg,...)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
static void twkb_parse_state_varint_skip(twkb_parse_state *s)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.