492 LWDEBUG(2,
"Entering magicbyte_from_twkb_state");
511 s->has_bbox = metadata & 0x01;
512 s->has_size = (metadata & 0x02) >> 1;
513 s->has_idlist = (metadata & 0x04) >> 2;
514 extended_dims = (metadata & 0x08) >> 3;
515 s->is_empty = (metadata & 0x10) >> 4;
520 int8_t precision_z, precision_m;
525 s->has_z = (extended_dims & 0x01);
526 s->has_m = (extended_dims & 0x02) >> 1;
527 precision_z = (extended_dims & 0x1C) >> 2;
528 precision_m = (extended_dims & 0xE0) >> 5;
531 s->factor_z = pow(10, (
double)precision_z);
532 s->factor_m = pow(10, (
double)precision_m);
549 s->ndims = 2 +
s->has_z +
s->has_m;
#define LWDEBUG(level, msg)
static uint8_t byte_from_twkb_state(twkb_parse_state *s)
Byte Read a byte and advance the parse state forward.
static uint32_t lwtype_from_twkb_type(uint8_t twkb_type)
static uint64_t twkb_parse_state_uvarint(twkb_parse_state *s)
int8_t unzigzag8(uint8_t val)