[postgis-tickets] r16028 - Remove conditional code to use with GEOS < 3.3.9

Sandro Santilli strk at kbt.io
Sat Oct 21 00:45:47 PDT 2017


Author: strk
Date: 2017-10-21 00:45:47 -0700 (Sat, 21 Oct 2017)
New Revision: 16028

Modified:
   trunk/liblwgeom/lwgeom_topo.c
Log:
Remove conditional code to use with GEOS < 3.3.9

We require 3.4.0+ now...

Modified: trunk/liblwgeom/lwgeom_topo.c
===================================================================
--- trunk/liblwgeom/lwgeom_topo.c	2017-10-20 19:38:44 UTC (rev 16027)
+++ trunk/liblwgeom/lwgeom_topo.c	2017-10-21 07:45:47 UTC (rev 16028)
@@ -433,15 +433,6 @@
     tmp2 = lwgeom_snap(tmp, tgt, tol);
     ++iterations;
     changed = ( lwgeom_count_vertices(tmp2) != lwgeom_count_vertices(tmp) );
-#if GEOS_NUMERIC_VERSION < 30309
-    /* Up to GEOS-3.3.8, snapping could duplicate points */
-    if ( changed ) {
-      tmp3 = lwgeom_remove_repeated_points( tmp2, 0 );
-      lwgeom_free(tmp2);
-      tmp2 = tmp3;
-      changed = ( lwgeom_count_vertices(tmp2) != lwgeom_count_vertices(tmp) );
-    }
-#endif /* GEOS_NUMERIC_VERSION < 30309 */
     LWDEBUGF(2, "After iteration %d, geometry changed ? %d (%d vs %d vertices)", iterations, changed, lwgeom_count_vertices(tmp2), lwgeom_count_vertices(tmp));
     if ( tmp != src ) lwgeom_free(tmp);
     tmp = tmp2;



More information about the postgis-tickets mailing list