Added tests for translate and scale bbox computation

git-svn-id: http://svn.osgeo.org/postgis/trunk@2351 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2006-05-16 19:11:37 +00:00
parent a88ba59b61
commit c54bcc654c
2 changed files with 6 additions and 0 deletions

View file

@ -41,3 +41,7 @@ select 'transscale', asewkt(snapToGrid(transscale('POINT(1 1)',1, 1, 2, 1), 0.1)
select 'transscale', asewkt(snapToGrid(transscale('POINT(1 1)',1, 1, 1, 2), 0.1));
select 'transscale', asewkt(snapToGrid(transscale('POINT(1 1)',2, 3, 5, 7), 0.1));
select 'transscale', asewkt(snapToGrid(transscale('POINT(1 1 1)',2, 3, 5, 7), 0.1));
-- postgis-users/2006-May/012119.html
select 'transl_bbox', box2d(translate('LINESTRING(0 0, 1 1)'::geometry, 1, 0, 0));
select 'scale_bbox', box2d(scale('LINESTRING(1 0, 2 1)'::geometry, 2, 0));

View file

@ -28,3 +28,5 @@ transscale|POINT(4 2)
transscale|POINT(2 4)
transscale|POINT(15 28)
transscale|POINT(15 28 1)
transl_bbox|BOX(1 0,2 1)
scale_bbox|BOX(2 0,4 0)