Skip to content

Commit

Permalink
Add test for ST_Affine bbox cache bug (#3159)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@13658 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
Sandro Santilli committed Jun 11, 2015
1 parent 1eaab35 commit b11a387
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regress/affine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions regress/affine_expected
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b11a387

Please sign in to comment.