Commit 2aa8da7e authored by Sandro Santilli's avatar Sandro Santilli
Browse files

Don't let a single collapse hide _all_ edges (#1650)

git-svn-id: http://svn.osgeo.org/postgis/trunk@9408 b70326c6-7e19-0410-871a-916f4a2858ee
parent eb170994
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -935,7 +935,7 @@ BEGIN
#ifdef POSTGIS_TOPOLOGY_DEBUG
      RAISE DEBUG 'Edge collapsed';
#endif
      RETURN;
      CONTINUE;
    END IF;

    -- Check if the so-snapped edge _now_ exists
+5 −0
Original line number Diff line number Diff line
@@ -184,6 +184,11 @@ SELECT '#1650.2' || TopoGeo_addLineString('city_data',
, 2)::text;
SELECT check_changes();

SELECT '#1650.3', TopoGeo_addLineString('city_data',
  'LINESTRING(-1 0, 10 0)'
, 2) ORDER BY 2;
SELECT check_changes();

-- Cleanups
DROP FUNCTION check_changes();
SELECT DropTopology('city_data');
+3 −0
Original line number Diff line number Diff line
@@ -146,4 +146,7 @@ E|64|sn62|en63
E|65|sn63|en64
#1650.1
N|65|0|POINT(0 0)
#1650.3|66
N|66||POINT(10 0)
E|66|sn65|en66
Topology 'city_data' dropped