]> granicus.if.org Git - postgis/commitdiff
Add test for ST_Polygonize with nested collection input (see ticket #878)
authorSandro Santilli <strk@keybit.net>
Mon, 21 Mar 2011 16:33:14 +0000 (16:33 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 21 Mar 2011 16:33:14 +0000 (16:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6951 b70326c6-7e19-0410-871a-916f4a2858ee

regress/Makefile.in
regress/polygonize.sql [new file with mode: 0644]
regress/polygonize_expected [new file with mode: 0644]

index 37be6751676d514be9b275325cb9f21902c7bfb6..380da3688c1a7c0610e0c002f40666f8a86025d5 100644 (file)
@@ -68,6 +68,7 @@ TESTS = \
        sql-mm-multicurve \
        sql-mm-multisurface \
        polyhedralsurface \
+       polygonize \
        out_geometry \
        out_geography \
        in_gml \
diff --git a/regress/polygonize.sql b/regress/polygonize.sql
new file mode 100644 (file)
index 0000000..1687dc4
--- /dev/null
@@ -0,0 +1,8 @@
+SELECT 1, ST_AsText(ST_Polygonize(
+'GEOMETRYCOLLECTION(
+  MULTILINESTRING(
+    (1656318.45 4833344.45,1656321.79 4833339.62,1656312.54 4833333.49),
+    (1656312.54 4833333.49,1656309.68 4833337.07)
+  ),
+  LINESTRING(1656309.68 4833337.07,1656318.45 4833344.45)
+)'::geometry));
diff --git a/regress/polygonize_expected b/regress/polygonize_expected
new file mode 100644 (file)
index 0000000..259697b
--- /dev/null
@@ -0,0 +1 @@
+1|GEOMETRYCOLLECTION(POLYGON((1656318.45 4833344.45,1656321.79 4833339.62,1656312.54 4833333.49,1656309.68 4833337.07,1656318.45 4833344.45)))