861 GEOSGeometry *g1, *g2, *g3;
877 #if POSTGIS_GEOS_VERSION < 30900
878 lwerror(
"Fixed-precision difference requires GEOS-3.9 or higher");
882 g3 = GEOSDifferencePrec(g1, g2, prec);
887 g3 = GEOSDifference(g1, g2);
891 GEOSSetSRID(g3, srid);
char result[OUT_DOUBLE_BUFFER_SIZE]
#define GEOS_FREE_AND_FAIL(...)
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, uint8_t want3d)
void lwgeom_geos_error(const char *fmt,...)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
#define FLAGS_GET_Z(flags)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)