]> granicus.if.org Git - postgis/commitdiff
Remove conditional code to use with GEOS < 3.3.9
authorSandro Santilli <strk@kbt.io>
Sat, 21 Oct 2017 07:45:47 +0000 (07:45 +0000)
committerSandro Santilli <strk@kbt.io>
Sat, 21 Oct 2017 07:45:47 +0000 (07:45 +0000)
We require 3.4.0+ now...

git-svn-id: http://svn.osgeo.org/postgis/trunk@16028 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_topo.c

index dc9a78f8f3bbd5aaf3ef6ad0e22aac8f53b3b028..791151c671bdaf8219e233a9bdcb2f9e4eba9c35 100644 (file)
@@ -433,15 +433,6 @@ _lwt_toposnap(LWGEOM *src, LWGEOM *tgt, double tol)
     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;