mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
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:
parent
a88ba59b61
commit
c54bcc654c
|
@ -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));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue