POLYHEDRALSURFACETYPE.
COLLECTION, MULTIPOINTTYPE, MULTILINETYPE, MULTIPOLYGONTYPE, COMPOUNDTYPE, MULTICURVETYPE, MULTISURFACETYPE, TINTYPE
Definition at line 636 of file lwin_wkb.c.
References wkb_parse_state::check, wkb_parse_state::has_m, wkb_parse_state::has_z, integer_from_wkb_state(), LW_PARSER_CHECK_ZCLOSURE, lwcollection_add_lwgeom(), lwcollection_construct_empty(), LWDEBUGF, lwerror(), lwgeom_free(), lwgeom_from_wkb_state(), wkb_parse_state::lwtype, POLYHEDRALSURFACETYPE, and wkb_parse_state::srid.
Referenced by lwgeom_from_wkb_state().
643 LWDEBUGF(4,
"Collection has %d components", ngeoms);
653 for ( i = 0; i < ngeoms; i++ )
660 lwerror(
"Unable to add geometry (%p) to collection (%p)", geom, col);
static uint32_t integer_from_wkb_state(wkb_parse_state *s)
Int32 Read 4-byte integer and advance the parse state forward.
void lwgeom_free(LWGEOM *geom)
#define POLYHEDRALSURFACETYPE
#define LW_PARSER_CHECK_ZCLOSURE
LWGEOM * lwgeom_from_wkb_state(wkb_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.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.