]> granicus.if.org Git - postgis/commitdiff
Add test for topology bug #3838
authorSandro Santilli <strk@kbt.io>
Sun, 22 Oct 2017 15:39:16 +0000 (15:39 +0000)
committerSandro Santilli <strk@kbt.io>
Sun, 22 Oct 2017 15:39:16 +0000 (15:39 +0000)
Shows previous commits fix #3838

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

topology/test/regress/topogeo_addlinestring.sql
topology/test/regress/topogeo_addlinestring_expected

index 74719f43164b50ee35d6c17fbe4cc5a559848f3c..7833b94bbe12cc4b73b7165777f6dbd9a0d627e4 100644 (file)
@@ -334,3 +334,19 @@ SELECT 't3371.L2', topology.TopoGeo_AddLineString( 'bug3711',
 'LINESTRING (618370 4833780 1.92, 618370 4833784 1.90, 618371 4833780 1.93)'
 ::geometry, 0);
 SELECT 't3371.end', topology.DropTopology('bug3711');
+
+-- See http://trac.osgeo.org/postgis/ticket/3838
+SELECT 't3838.start', topology.CreateTopology('bug3838') > 1;
+SELECT 't3838.L1', topology.TopoGeo_addLinestring('bug3838',
+'LINESTRING(
+622617.12 6554996.14,
+622612.06 6554996.7,
+622609.17 6554995.51,
+622606.83 6554996.14,
+622598.73 6554996.23,
+622591.53 6554995.96)'
+::geometry , 1);
+SELECT 't3838.L2', topology.TopoGeo_addLinestring('bug3838',
+'LINESTRING(622608 6554988, 622596 6554984)'
+::geometry , 10);
+SELECT 't3838.end', topology.DropTopology('bug3838');
index e1054af42d9179cc31ad1795f96b0e6d8bfbd112..7d87a8384c5b63360f2a5668d7d163bbe86916c1 100644 (file)
@@ -210,3 +210,15 @@ t3371.L1|1
 t3371.L2|3
 t3371.L2|2
 t3371.end|Topology 'bug3711' dropped
+t3838.start|t
+t3838.L1|1
+t3838.L2|1
+t3838.L2|3
+t3838.L2|4
+t3838.L2|5
+t3838.L2|6
+t3838.L2|7
+t3838.L2|8
+t3838.L2|9
+t3838.L2|2
+t3838.end|Topology 'bug3838' dropped