From 2100faff6fa11cc48e4400ab076dcaff703536bc Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Mon, 28 Nov 2005 11:27:21 +0000 Subject: [PATCH] Added force_collection test git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2082 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/regress.sql | 2 ++ regress/regress_expected | 1 + 2 files changed, 3 insertions(+) diff --git a/regress/regress.sql b/regress/regress.sql index 817593f00..59ecfe465 100644 --- a/regress/regress.sql +++ b/regress/regress.sql @@ -244,3 +244,5 @@ select '146', asewkt(force_4d('POINTM(1 2 3)')); select '147', asewkt(force_4d('POINT(1 2 3)')); select '148', astext(segmentize('LINESTRING(0 0, 10 0)', 5)); + +select '150', asewkt(force_collection(setsrid('POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))'::geometry, 6))); diff --git a/regress/regress_expected b/regress/regress_expected index 67bab5a3e..749e795ab 100644 --- a/regress/regress_expected +++ b/regress/regress_expected @@ -148,3 +148,4 @@ ERROR: POSTGIS2GEOS conversion failed 146|POINT(1 2 0 3) 147|POINT(1 2 3 0) 148|LINESTRING(0 0,5 0,10 0) +150|SRID=6;GEOMETRYCOLLECTION(POLYGON((0 0,1 0,1 1,0 1,0 0))) -- 2.40.0