1426 #if POSTGIS_GEOS_VERSION < 35 1428 lwpgerror(
"The GEOS version this PostGIS binary " 1429 "was compiled against (%d) doesn't support " 1430 "'GEOSClipByRect' function (3.5.0+ required)",
1438 LWGEOM *lwgeom1, *lwresult ;
1442 geom1 = PG_GETARG_GSERIALIZED_P(0);
1450 PG_RETURN_POINTER(geom1);
1454 bbox2 = (
GBOX *)PG_GETARG_POINTER(1);
1462 PG_FREE_IF_COPY(geom1, 0);
1465 PG_RETURN_POINTER(result);
1472 PG_RETURN_POINTER(geom1);
1479 PG_FREE_IF_COPY(geom1, 0);
1481 if ( lwresult == NULL )
1486 PG_RETURN_POINTER(result);
#define POSTGIS_GEOS_VERSION
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_clip_by_rect(const LWGEOM *geom1, double x0, double y0, double x1, double y1)
int gbox_contains_2d(const GBOX *g1, const GBOX *g2)
Return LW_TRUE if the first GBOX contains the second on the 2d plane, LW_FALSE otherwise.
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
LWGEOM * lwgeom_construct_empty(uint8_t type, int srid, char hasz, char hasm)
int gbox_overlaps_2d(const GBOX *g1, const GBOX *g2)
Return LW_TRUE if the GBOX overlaps on the 2d plane, LW_FALSE otherwise.
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)