492{
493 uint8_t *geometry_start = ((uint8_t *)g->
data);
495 {
497 }
498
499 uint32_t isEmpty = (((uint32_t *)geometry_start)[1]) == 0;
500 if (isEmpty)
501 {
503 }
504
505 uint32_t
type = (((uint32_t *)geometry_start)[0]);
506
507 double *double_array_start = NULL;
508 switch (type)
509 {
511
512 double_array_start = (double *)(geometry_start + 2 * sizeof(uint32_t));
513 break;
514
515 default:
516 lwerror(
"%s is currently not implemented for type %d", __func__, type);
518 }
519
522}
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 lwerror(const char *fmt,...)
Write a notice out to the error handler.