987 #if POSTGIS_GEOS_VERSION < 30900
988 lwerror(
"Precision reduction requires GEOS-3.9 or higher");
995 GEOSGeometry *g1, *g3;
1006 g3 = GEOSGeom_setPrecision(g1, gridSize, 0);
1009 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)