698 g = PG_GETARG_GSERIALIZED_P(0);
703 POSTGIS_DEBUG(4,
"gserialized_get_gbox_p returned LW_FAILURE");
704 elog(ERROR,
"Error in gserialized_get_gbox_p calculation.");
718 SET_VARSIZE(g_out, g_out_size);
720 PG_FREE_IF_COPY(g, 0);
721 PG_RETURN_POINTER(g_out);
char * gbox_to_string(const GBOX *gbox)
Allocate a string representation of the GBOX, based on dimensionality of flags.
int gserialized_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
GSERIALIZED * gserialized_from_lwgeom(LWGEOM *geom, size_t *size)
Allocate a new GSERIALIZED from an LWGEOM.
void lwgeom_set_geodetic(LWGEOM *geom, int value)
Set the FLAGS geodetic bit on geometry an all sub-geometries and pointlists.
LWPOINT * lwpoint_make2d(int srid, double x, double y)
int gbox_pt_outside(const GBOX *gbox, POINT2D *pt_outside)
Calculate a spherical point that falls outside the geocentric gbox.