]> granicus.if.org Git - postgis/commitdiff
Split test for #1968 in two parts, to avoid false negative
authorSandro Santilli <strk@keybit.net>
Thu, 7 Mar 2013 07:31:50 +0000 (07:31 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 7 Mar 2013 07:31:50 +0000 (07:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11156 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/totopogeom.sql
topology/test/regress/totopogeom_expected

index a2e6443e2446b566111a5c3de2b1adae9ac87e64..63be65ede508bb68d7213cf84675d59d0a07b35d 100644 (file)
@@ -170,10 +170,16 @@ select '#1790.3', ST_HausdorffDistance(inp.g, tg.g::geometry), ST_HausdorffDista
 
 -- http://trac.osgeo.org/postgis/ticket/1968
 with inp as ( select
-'MULTILINESTRING ((0 0, 10 0),(5 0, 5 5),(0 0, 5 0),(5 0, 10 0))'
+'MULTILINESTRING ((0 0, 10 0),(5 0, 5 5))'
 ::geometry as g ),
 tg as ( select totopogeom(g, 'tt', 3) as g from inp )
-SELECT '#1968', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;
+SELECT '#1968.1', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;
+with inp as ( select
+ST_Translate(
+'MULTILINESTRING ((0 0, 10 0),(5 0, 5 5),(0 0, 5 0),(5 0, 10 0))'
+::geometry, 20, 0) as g ),
+tg as ( select totopogeom(g, 'tt', 3) as g from inp )
+SELECT '#1968.2', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;
 
 -- Test adding portions to an existing TopoGeometry
 INSERT INTO tt.f_areal (id, g)
index e5bc5ad2e2facc3e5173c2897591db7e1699cdff..6d9999187e22bc92df2ae107f5c5b916f8d9e224 100644 (file)
@@ -39,7 +39,8 @@ custom_search_path|0
 #1790.1|0|0
 #1790.2|0|0
 #1790.3|0|0
-#1968|0
+#1968.1|0
+#1968.2|0
 tgup1.1|5|100|1
 tgup1.2|5|200|2
 tgup1.3|5|200|4