493{
494 uint8_t *geometry_start = ((uint8_t *)g->
data);
496 {
498 }
499
500 uint32_t isEmpty = (((uint32_t *)geometry_start)[1]) == 0;
501 if (isEmpty)
502 {
504 }
505
506 uint32_t
type = (((uint32_t *)geometry_start)[0]);
507
508 double *double_array_start = NULL;
509 switch (type)
510 {
512
513 double_array_start = (double *)(geometry_start + 2 * sizeof(uint32_t));
514 break;
515
516 default:
517 lwerror(
"%s is currently not implemented for type %d", __func__, type);
519 }
520
523}
static void gserialized1_copy_point(double *dptr, lwflags_t flags, POINT4D *out_point)
int gserialized1_has_bbox(const GSERIALIZED *gser)
Check if a GSERIALIZED has a bounding box without deserializing first.
static size_t gserialized1_box_size(const GSERIALIZED *g)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.