From 3fcf312af110f15c731ab39e80d15328fc15ed20 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 21 Mar 2011 16:33:14 +0000 Subject: [PATCH] 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 --- regress/Makefile.in | 1 + regress/polygonize.sql | 8 ++++++++ regress/polygonize_expected | 1 + 3 files changed, 10 insertions(+) create mode 100644 regress/polygonize.sql create mode 100644 regress/polygonize_expected 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))) -- 2.50.1