MULTIPOLYGON.
Definition at line 413 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(), lwpoly_as_lwgeom(), lwpoly_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().
419 LWDEBUG(2,
"Entering lwmultipolygon_from_twkb_state");
426 LWDEBUGF(4,
"Number of geometries %d",ngeoms);
431 for ( i = 0; i < ngeoms; i++ )
435 for ( i = 0; i < ngeoms; i++ )
440 lwerror(
"Unable to add geometry (%p) to collection (%p)", geom, col);
static LWPOLY * lwpoly_from_twkb_state(twkb_parse_state *s)
POLYGON.
#define LWDEBUG(level, msg)
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
#define SRID_UNKNOWN
Unknown SRID value.
static uint64_t twkb_parse_state_uvarint(twkb_parse_state *s)
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.