Definition at line 1418 of file gserialized2.c.
1421 uint8_t *start_ptr = data_ptr;
1423 uint32_t ngeoms = 0;
1433 collection->
bbox = NULL;
1438 collection->
ngeoms = ngeoms;
1448 collection->
geoms = NULL;
1455 for (i = 0; i < ngeoms; i++)
1467 data_ptr += subsize;
1471 *size = data_ptr - start_ptr;
static uint32_t gserialized2_get_uint32_t(const uint8_t *loc)
static LWGEOM * lwgeom_from_gserialized2_buffer(uint8_t *data_ptr, lwflags_t lwflags, size_t *size)
#define FLAGS_SET_BBOX(flags, value)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
void * lwalloc(size_t size)
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
#define SRID_UNKNOWN
Unknown SRID value.
int lwcollection_allows_subtype(int collectiontype, int subtype)
Check if subtype is allowed in collectiontype.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
References LWCOLLECTION::bbox, LWCOLLECTION::flags, FLAGS_SET_BBOX, LWCOLLECTION::geoms, gserialized2_get_uint32_t(), lwalloc(), lwcollection_allows_subtype(), lwerror(), lwflags(), lwfree(), lwgeom_from_gserialized2_buffer(), lwtype_name(), LWCOLLECTION::maxgeoms, LWCOLLECTION::ngeoms, LWCOLLECTION::srid, SRID_UNKNOWN, LWCOLLECTION::type, and ovdump::type.
Referenced by lwgeom_from_gserialized2_buffer().