1227{
1228 uint8_t *start_ptr = data_ptr;
1230 uint8_t *ordinate_ptr;
1231 uint32_t nrings = 0;
1232 uint32_t i = 0;
1233
1234 assert(data_ptr);
1235
1241
1242 data_ptr += 4;
1245 LWDEBUGF(4,
"nrings = %d", nrings);
1246 data_ptr += 4;
1247
1248 ordinate_ptr = data_ptr;
1249 if ( nrings > 0)
1250 {
1253 ordinate_ptr += nrings * 4;
1254 if ( nrings % 2 )
1255 ordinate_ptr += 4;
1256 }
1257 else
1258 {
1261 }
1262
1263 for ( i = 0; i < nrings; i++ )
1264 {
1265 uint32_t npoints = 0;
1266
1267
1269 data_ptr += 4;
1270
1271
1273
1275 }
1276
1277 if ( size )
1278 *size = ordinate_ptr - start_ptr;
1279
1280 return poly;
1281}
static uint32_t gserialized1_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.
#define SRID_UNKNOWN
Unknown SRID value.
#define LWDEBUGF(level, msg,...)