1336{
1337 uint8_t *start_ptr = data_ptr;
1339 uint32_t npoints = 0;
1340
1341 assert(data_ptr);
1342
1344 triangle->
srid = srid;
1345 triangle->
bbox = NULL;
1348
1349 data_ptr += 4;
1351 data_ptr += 4;
1352
1353 if (npoints > 0)
1355 else
1357
1359
1360 if (size)
1361 *size = data_ptr - start_ptr;
1362
1363 return triangle;
1364}
static uint32_t gserialized2_get_uint32_t(const uint8_t *loc)
POINTARRAY * ptarray_construct_reference_data(char hasz, char hasm, uint32_t npoints, uint8_t *ptlist)
Construct a new POINTARRAY, referencing to the data from ptlist.
#define FLAGS_GET_Z(flags)
void * lwalloc(size_t size)
#define FLAGS_NDIMS(flags)
#define FLAGS_GET_M(flags)
lwflags_t lwflags(int hasz, int hasm, int geodetic)
Construct a new flags bitmask.
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...