Definition at line 1313 of file g_serialized.c.
1315 uint8_t *start_ptr = data_ptr;
1327 poly->
flags = g_flags;
1332 LWDEBUGF(4,
"nrings = %d", nrings);
1335 ordinate_ptr = data_ptr;
1340 ordinate_ptr += nrings * 4;
1350 for ( i = 0; i < nrings; i++ )
1361 ordinate_ptr +=
sizeof(double) *
FLAGS_NDIMS(g_flags) * npoints;
1365 *
g_size = ordinate_ptr - start_ptr;
static uint32_t gserialized_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)
Macros for manipulating the 'flags' byte.
#define FLAGS_NDIMS(flags)
#define FLAGS_GET_M(flags)
void * lwalloc(size_t size)
#define SRID_UNKNOWN
Unknown SRID value.
#define LWDEBUGF(level, msg,...)
References LWPOLY::bbox, LWPOLY::flags, FLAGS_GET_M, FLAGS_GET_Z, FLAGS_NDIMS, genraster::g_size, gserialized_get_uint32_t(), lwalloc(), LWDEBUGF, LWPOLY::maxrings, LWPOLY::nrings, POLYGONTYPE, ptarray_construct_reference_data(), LWPOLY::rings, LWPOLY::srid, SRID_UNKNOWN, and LWPOLY::type.
Referenced by lwgeom_from_gserialized_buffer().