From: Sandro Santilli Date: Wed, 17 May 2006 07:52:55 +0000 (+0000) Subject: Additional bbox tests for transcale, rotateX and rotateY X-Git-Tag: pgis_1_1_3~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2504bfda8cbfa6b52e28a5e393e640429ce0c2f9;p=postgis Additional bbox tests for transcale, rotateX and rotateY git-svn-id: http://svn.osgeo.org/postgis/trunk@2352 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/affine.sql b/regress/affine.sql index 6de2d0884..80aa7287d 100644 --- a/regress/affine.sql +++ b/regress/affine.sql @@ -45,3 +45,7 @@ select 'transscale', asewkt(snapToGrid(transscale('POINT(1 1 1)',2, 3, 5, 7), 0. -- 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)); +select 'tscale_bbox', box2d(transscale('LINESTRING(1 0, 2 1)'::geometry, 2, 1, 1, 1)); + +select 'rotZ_bbox', box2d(SnapToGrid(rotateZ('LINESTRING(0 0, 1 0)', pi()), 0.1)); +select 'rotY_bbox', box2d(SnapToGrid(rotateY('LINESTRING(0 0, 1 0)', pi()), 0.1)); diff --git a/regress/affine_expected b/regress/affine_expected index 03ee831e4..8139a7246 100644 --- a/regress/affine_expected +++ b/regress/affine_expected @@ -30,3 +30,6 @@ transscale|POINT(15 28) transscale|POINT(15 28 1) transl_bbox|BOX(1 0,2 1) scale_bbox|BOX(2 0,4 0) +tscale_bbox|BOX(3 1,4 2) +rotZ_bbox|BOX(-1 0,0 0) +rotY_bbox|BOX(-1 0,0 0)