Definition at line 1252 of file g_serialized.c.
References LWPOINT::bbox, LWPOINT::flags, FLAGS_GET_M, FLAGS_GET_Z, FLAGS_NDIMS, gserialized_get_uint32_t(), lwalloc(), LWPOINT::point, POINTTYPE, ptarray_construct(), ptarray_construct_reference_data(), LWPOINT::srid, SRID_UNKNOWN, and LWPOINT::type.
Referenced by lwgeom_from_gserialized_buffer().
1254 uint8_t *start_ptr = data_ptr;
1264 point->
flags = g_flags;
1275 data_ptr += npoints *
FLAGS_NDIMS(g_flags) *
sizeof(double);
1278 *
g_size = data_ptr - start_ptr;
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...
#define SRID_UNKNOWN
Unknown SRID value.
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)
Macros for manipulating the 'flags' byte.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_M(flags)
void * lwalloc(size_t size)
static uint32_t gserialized_get_uint32_t(const uint8_t *loc)
#define FLAGS_NDIMS(flags)