From b11a3873501a34a2ae63e771c144b88ee500fb85 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 11 Jun 2015 19:41:25 +0000 Subject: [PATCH] Add test for ST_Affine bbox cache bug (#3159) git-svn-id: http://svn.osgeo.org/postgis/trunk@13658 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/affine.sql | 3 +++ regress/affine_expected | 1 + 2 files changed, 4 insertions(+) diff --git a/regress/affine.sql b/regress/affine.sql index 0b9136aa0..ede4fe7ee 100644 --- a/regress/affine.sql +++ b/regress/affine.sql @@ -53,6 +53,9 @@ select 'ST_TransScale', ST_asewkt(ST_snapToGrid(ST_TransScale('POINT(1 1)'::geom select 'ST_TransScale', ST_asewkt(ST_snapToGrid(ST_TransScale('POINT(1 1)'::geometry,2, 3, 5, 7), 0.1)); select 'ST_TransScale', ST_asewkt(ST_snapToGrid(ST_TransScale('POINT(1 1 1)'::geometry,2, 3, 5, 7), 0.1)); +-- https://trac.osgeo.org/postgis/ticket/3159 +select '#3159', st_summary(st_affine(st_makepoint(1,1),1,0,0,1,0,0)); + -- postgis-users/2006-May/012119.html select 'transl_bbox', box2d(ST_Translate('LINESTRING(0 0, 1 1)'::geometry, 1, 0, 0)); select 'ST_Scale_bbox', box2d(ST_Scale('LINESTRING(1 0, 2 1)'::geometry, 2, 0)); diff --git a/regress/affine_expected b/regress/affine_expected index be9054fc8..acce33bb7 100644 --- a/regress/affine_expected +++ b/regress/affine_expected @@ -36,6 +36,7 @@ ST_TransScale|POINT(4 2) ST_TransScale|POINT(2 4) ST_TransScale|POINT(15 28) ST_TransScale|POINT(15 28 1) +#3159|Point[] transl_bbox|BOX(1 0,2 1) ST_Scale_bbox|BOX(2 0,4 0) ST_Scale_bbox|BOX(3 1,4 2)