From: Sandro Santilli Date: Mon, 21 Mar 2011 16:33:14 +0000 (+0000) Subject: Add test for ST_Polygonize with nested collection input (see ticket #878) X-Git-Tag: 2.0.0alpha1~1851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fcf312af110f15c731ab39e80d15328fc15ed20;p=postgis Add test for ST_Polygonize with nested collection input (see ticket #878) git-svn-id: http://svn.osgeo.org/postgis/trunk@6951 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/Makefile.in b/regress/Makefile.in index 37be67516..380da3688 100644 --- a/regress/Makefile.in +++ b/regress/Makefile.in @@ -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 index 000000000..1687dc4da --- /dev/null +++ b/regress/polygonize.sql @@ -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 index 000000000..259697b32 --- /dev/null +++ b/regress/polygonize_expected @@ -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)))