1213{
1214 uint8_t *start_ptr = data_ptr;
1216 uint32_t npoints = 0;
1217
1218 assert(data_ptr);
1219
1225
1226 data_ptr += 4;
1228 data_ptr += 4;
1229
1230 if (npoints > 0)
1232 else
1234
1236
1237 if (size)
1238 *size = data_ptr - start_ptr;
1239
1240 return point;
1241}
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 POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#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...