793{
797 GEOSGeometry* g1;
798 GEOSGeometry* g3;
799
801
802
804
806
808
809 if ( prec >= 0) {
810#if POSTGIS_GEOS_VERSION < 30900
813 return NULL;
814#else
815 g3 = GEOSUnaryUnionPrec(g1, prec);
816#endif
817 }
818 else
819 {
820 g3 = GEOSUnaryUnion(g1);
821 }
822
824 GEOSSetSRID(g3, srid);
825
828
830
832}
char result[OUT_DOUBLE_BUFFER_SIZE]
void lwgeom_geos_error_minversion(const char *functionality, const char *minver)
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
#define GEOS_FREE_AND_FAIL(...)
void lwgeom_geos_error(const char *fmt,...)
void(*) LWGEOM GEOS2LWGEOM)(const GEOSGeometry *geom, uint8_t want3d)
#define FLAGS_GET_Z(flags)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
void lwnotice(const char *fmt,...) __attribute__((format(printf
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)