]> granicus.if.org Git - postgis/commitdiff
Additional bbox tests for transcale, rotateX and rotateY
authorSandro Santilli <strk@keybit.net>
Wed, 17 May 2006 07:52:55 +0000 (07:52 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 17 May 2006 07:52:55 +0000 (07:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2352 b70326c6-7e19-0410-871a-916f4a2858ee

regress/affine.sql
regress/affine_expected

index 6de2d08840328268fcddb773c9e1237d7048037e..80aa7287d46ef28bbd223364bbfb4ab2d4fad540 100644 (file)
@@ -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));
index 03ee831e486ff174a21635a9bdb2fb06bc1baa12..8139a7246ceed19bab98202520821ca5f4bf00d4 100644 (file)
@@ -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)