Definition at line 1398 of file gserialized2.c.
1401 uint8_t *start_ptr = data_ptr;
1403 uint32_t ngeoms = 0;
1412 collection->
srid = srid;
1413 collection->
bbox = NULL;
1418 collection->
ngeoms = ngeoms;
1428 collection->
geoms = NULL;
1435 for (i = 0; i < ngeoms; i++)
1447 data_ptr += subsize;
1451 *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, int32_t srid)
#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.
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, LWCOLLECTION::type, and ovdump::type.
Referenced by lwgeom_from_gserialized2_buffer().