[postgis-tickets] r16039 - Add test for topology bug #1946
Sandro Santilli
strk at kbt.io
Sun Oct 22 08:39:33 PDT 2017
Author: strk
Date: 2017-10-22 08:39:33 -0700 (Sun, 22 Oct 2017)
New Revision: 16039
Modified:
trunk/topology/test/regress/topogeo_addpolygon.sql
trunk/topology/test/regress/topogeo_addpolygon_expected
Log:
Add test for topology bug #1946
Previous commits fix #1946 too
Modified: trunk/topology/test/regress/topogeo_addpolygon.sql
===================================================================
--- trunk/topology/test/regress/topogeo_addpolygon.sql 2017-10-22 15:39:25 UTC (rev 16038)
+++ trunk/topology/test/regress/topogeo_addpolygon.sql 2017-10-22 15:39:33 UTC (rev 16039)
@@ -126,3 +126,21 @@
76.29001 9.90026,76.31988 9.89696))'
::geometry);
SELECT 't1855_0.end', topology.DropTopology('bug1855');
+
+-- See https://trac.osgeo.org/postgis/ticket/1946
+SELECT 't1946.start', topology.CreateTopology('bug1946', 0, 0.00001) > 0;
+SELECT 't1946.0', topology.topogeo_AddPolygon('bug1946',
+'POLYGON((76.68554 30.74,76.68726 30.74248,
+ 76.69223 30.74157,76.68554 30.74))'
+::geometry);
+SELECT 't1946.1', topology.topogeo_AddPolygon('bug1946',
+'POLYGON((76.68554 30.74,76.67933 30.75,
+ 76.68727 30.74249,76.68727 30.74248,
+ 76.68726 30.74248,76.68554 30.74))'
+::geometry);
+SELECT 't1946.2', topology.topogeo_AddPolygon('bug1946',
+'POLYGON((76.68728 30.74248,76.68727 30.74248,
+ 76.68727 30.74249,76.67933 30.75,
+ 76.69223 30.74157,76.68728 30.74248))'
+::geometry);
+SELECT 't1946.end', topology.DropTopology('bug1946');
Modified: trunk/topology/test/regress/topogeo_addpolygon_expected
===================================================================
--- trunk/topology/test/regress/topogeo_addpolygon_expected 2017-10-22 15:39:25 UTC (rev 16038)
+++ trunk/topology/test/regress/topogeo_addpolygon_expected 2017-10-22 15:39:33 UTC (rev 16039)
@@ -57,3 +57,8 @@
t1855_0.0|1
t1855_0.1|2
t1855_0.end|Topology 'bug1855' dropped
+t1946.start|t
+t1946.0|1
+t1946.1|2
+t1946.2|4
+t1946.end|Topology 'bug1946' dropped
More information about the postgis-tickets
mailing list