Definition at line 1432 of file g_serialized.c.
References LWCOLLECTION::bbox, LWCOLLECTION::flags, FLAGS_SET_BBOX, LWCOLLECTION::geoms, gserialized_get_uint32_t(), lwalloc(), lwcollection_allows_subtype(), lwerror(), lwfree(), lwgeom_from_gserialized_buffer(), lwtype_name(), LWCOLLECTION::ngeoms, LWCOLLECTION::srid, SRID_UNKNOWN, ovdump::type, and LWCOLLECTION::type.
Referenced by lwgeom_from_gserialized_buffer().
1435 uint8_t *start_ptr = data_ptr;
1447 collection->
bbox = NULL;
1449 collection->
flags = g_flags;
1452 collection->
ngeoms = ngeoms;
1458 collection->
geoms = NULL;
1463 for ( i = 0; i < ngeoms; i++ )
1475 data_ptr += subsize;
1479 *
g_size = data_ptr - start_ptr;
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define SRID_UNKNOWN
Unknown SRID value.
static LWGEOM * lwgeom_from_gserialized_buffer(uint8_t *data_ptr, uint8_t g_flags, size_t *g_size)
#define FLAGS_SET_BBOX(flags, value)
int lwcollection_allows_subtype(int collectiontype, int subtype)
Check if subtype is allowed in collectiontype.
void * lwalloc(size_t size)
static uint32_t gserialized_get_uint32_t(const uint8_t *loc)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.