[postgis-tickets] r16037 - Add test for topology bug #3838

Sandro Santilli strk at kbt.io
Sun Oct 22 08:39:16 PDT 2017


Author: strk
Date: 2017-10-22 08:39:16 -0700 (Sun, 22 Oct 2017)
New Revision: 16037

Modified:
   trunk/topology/test/regress/topogeo_addlinestring.sql
   trunk/topology/test/regress/topogeo_addlinestring_expected
Log:
Add test for topology bug #3838

Shows previous commits fix #3838

Modified: trunk/topology/test/regress/topogeo_addlinestring.sql
===================================================================
--- trunk/topology/test/regress/topogeo_addlinestring.sql	2017-10-22 15:39:08 UTC (rev 16036)
+++ trunk/topology/test/regress/topogeo_addlinestring.sql	2017-10-22 15:39:16 UTC (rev 16037)
@@ -334,3 +334,19 @@
 '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');

Modified: trunk/topology/test/regress/topogeo_addlinestring_expected
===================================================================
--- trunk/topology/test/regress/topogeo_addlinestring_expected	2017-10-22 15:39:08 UTC (rev 16036)
+++ trunk/topology/test/regress/topogeo_addlinestring_expected	2017-10-22 15:39:16 UTC (rev 16037)
@@ -210,3 +210,15 @@
 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



More information about the postgis-tickets mailing list