1076 #if POSTGIS_GEOS_VERSION < 35 1077 lwerror(
"The GEOS version this postgis binary " 1078 "was compiled against (%d) doesn't support " 1079 "'GEOSClipByRect' function (3.5.0+ required)",
1084 GEOSGeometry *g1, *g3 ;
1095 LWDEBUG(3,
"clip_by_rect() START");
1104 LWDEBUG(3,
" constructed geometrys - calling geos");
1105 LWDEBUGF(3,
" g1 = %s", GEOSGeomToWKT(g1));
1108 g3 = GEOSClipByRect(g1,x0,y0,x1,y1);
1109 GEOSGeom_destroy(g1);
1111 LWDEBUG(3,
" clip_by_rect finished");
1119 LWDEBUGF(3,
"result: %s", GEOSGeomToWKT(g3) ) ;
1122 GEOSGeom_destroy(g3);
#define POSTGIS_GEOS_VERSION
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
char lwgeom_geos_errmsg[LWGEOM_GEOS_ERRMSG_MAXSIZE]
#define LWDEBUG(level, msg)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
void lwgeom_geos_error(const char *fmt,...)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, int autofix)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, char want3d)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.