]> granicus.if.org Git - postgis/commitdiff
Fix missing #ifdef POSTGIS_GEOS_VERSION ... #endif preventing liblwgeom from compilin...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 3 Feb 2012 21:03:46 +0000 (21:03 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 3 Feb 2012 21:03:46 +0000 (21:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9018 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos_node.c

index 02ac299afb58afeea82e5eb8354ffb34b9336d85..ab0fb58346d320991a26da48e296f9d007c09b31 100644 (file)
@@ -129,6 +129,13 @@ extern LWGEOM* lwgeom_node(const LWGEOM* lwgeom_in);
 LWGEOM*
 lwgeom_node(const LWGEOM* lwgeom_in)
 {
+#if POSTGIS_GEOS_VERSION < 33
+       lwerror("The GEOS version this postgis binary "
+               "was compiled against (%d) doesn't support "
+               "'GEOSUnaryUnion' function (3.3.0+ required)",
+               POSTGIS_GEOS_VERSION);
+       return NULL;
+#else /* POSTGIS_GEOS_VERSION >= 33 */
        GEOSGeometry *g1, *gu, *gm;
        LWGEOM *ep, *lines;
        LWCOLLECTION *col, *tc;
@@ -248,5 +255,6 @@ lwgeom_node(const LWGEOM* lwgeom_in)
 
        lines->srid = lwgeom_in->srid;
        return (LWGEOM*)lines;
+#endif /* POSTGIS_GEOS_VERSION >= 33 */
 }