Commit 12dc9f60 authored by Dan Baston's avatar Dan Baston

Add some tests to document ST_Expand behavior

git-svn-id: http://svn.osgeo.org/postgis/trunk@14913 b70326c6-7e19-0410-871a-916f4a2858ee
parent 410475aa
Pipeline #3208387 failed with stage
in 1 minute and 41 seconds
......@@ -248,5 +248,18 @@ select '190', ST_Points(NULL) IS NULL;
select '191', ST_AsText(ST_Points('MULTICURVE EMPTY'));
select '192', ST_AsText(ST_Points('POLYGON((35 10,45 45,15 40,10 20,35 10),(20 30,35 35,30 20,20 30))'));
select '200', ST_Expand(null::geometry, 1);
select '201', ST_AsText(ST_Expand('LINESTRING (1 2 3, 10 20 30)'::geometry, 1));
select '202', ST_AsText(ST_Expand('LINESTRINGM (1 2 3, 10 20 30)'::geometry, 1));
select '203', ST_AsText(ST_Expand('LINESTRING (1 2, 10 20)'::geometry, 3));
select '204', ST_AsText(ST_Expand('POLYGON EMPTY'::geometry, 4));
select '205', ST_AsText(ST_Expand('POINT EMPTY'::geometry, 2));
select '206', ST_AsText(ST_Expand('POINT (2 3)'::geometry, 0));
select '207', ST_AsText(ST_Expand('LINESTRING (1 2, 3 4)'::geometry, 0));
select '208', ST_AsText(ST_Expand('POINT (0 0)'::geometry, -1));
select '209', ST_AsText(ST_Expand('LINESTRING (0 0, 10 10)'::geometry, -4));
select '210', ST_Expand(null::box3d, 1);
select '211', ST_Expand('BOX3D(-1 3 5, -1 6 8)'::BOX3D, 1);
-- Drop test table
DROP table test;
......@@ -173,3 +173,15 @@ ERROR: geometry contains non-closed rings
190|t
191|MULTIPOINT EMPTY
192|MULTIPOINT(35 10,45 45,15 40,10 20,35 10,20 30,35 35,30 20,20 30)
200|
201|POLYGON Z ((0 1 2,0 21 2,11 21 31,11 1 31,0 1 2))
202|POLYGON M ((0 1 2,0 21 2,11 21 31,11 1 31,0 1 2))
203|POLYGON((-2 -1,-2 23,13 23,13 -1,-2 -1))
204|POLYGON EMPTY
205|POINT EMPTY
206|POLYGON((2 3,2 3,2 3,2 3,2 3))
207|POLYGON((1 2,1 4,3 4,3 2,1 2))
208|POLYGON((1 1,1 -1,-1 -1,-1 1,1 1))
209|POLYGON((4 4,4 6,6 6,6 4,4 4))
210|
211|BOX3D(-2 2 4,0 7 9)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment