[SCM] PostGIS branch master updated. 3.6.0rc2-702-g30030a7f2

git at osgeo.org git at osgeo.org
Tue Jun 30 22:48:28 PDT 2026


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  30030a7f28a73a3d14ebb7272f7498656e9233db (commit)
       via  fff69061de9c66093ad4817f166e63e30ab056c4 (commit)
      from  dc6337753b8ce98dde25fc260bfad194ef430b4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 30030a7f28a73a3d14ebb7272f7498656e9233db
Merge: dc6337753 fff69061d
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jul 1 09:47:26 2026 +0400

    Merge pull request https://github.com/postgis/postgis/pull/914
    
    raster: add ST_SetRotation angle regression
    
    Closes #1554


commit fff69061de9c66093ad4817f166e63e30ab056c4
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jun 17 02:39:04 2026 +0400

    raster: add ST_SetRotation angle regression

diff --git a/raster/test/regress/rt_rotation.sql b/raster/test/regress/rt_rotation.sql
index 386d17733..b3a623d2f 100644
--- a/raster/test/regress/rt_rotation.sql
+++ b/raster/test/regress/rt_rotation.sql
@@ -298,6 +298,34 @@ SELECT 'T6', id, scalex, scaley, skewx, skewy,
     FROM rt_properties_test
     WHERE id > 100;
 
+WITH before_after AS (
+    SELECT
+        label,
+        ST_Geotransform(rast) AS before_gt,
+        ST_Geotransform(ST_SetRotation(rast, pi() / 4)) AS after_gt
+    FROM (
+        VALUES
+            (
+                'positive-scale',
+                ST_MakeEmptyRaster(1, 1, 0, 0, 5, 5, 3, 7, 0)
+            ),
+            (
+                'north-up-scale',
+                ST_MakeEmptyRaster(1, 1, 0, 0, 2, -3, 0.5, 0.75, 0)
+            )
+    ) AS v(label, rast)
+)
+SELECT
+    '#1554',
+    label,
+    round((before_gt).theta_ij::numeric, 12),
+    round((after_gt).theta_ij::numeric, 12),
+    round((before_gt).imag::numeric, 12) = round((after_gt).imag::numeric, 12),
+    round((before_gt).jmag::numeric, 12) = round((after_gt).jmag::numeric, 12),
+    round((before_gt).theta_ij::numeric, 12) = round((after_gt).theta_ij::numeric, 12)
+FROM before_after
+ORDER BY label;
+
 DELETE FROM rt_properties_test
     WHERE id > 100;
 
diff --git a/raster/test/regress/rt_rotation_expected b/raster/test/regress/rt_rotation_expected
index b091caafc..6ec78d17e 100644
--- a/raster/test/regress/rt_rotation_expected
+++ b/raster/test/regress/rt_rotation_expected
@@ -6,3 +6,5 @@ T5|104|3605551275464|1941450686788|4714951667914|-3605551275464|785398163397
 T5|105|6082762530298|-3781176708023|4438772657245|-6082762530298|785398163397
 T6|104|4415880433164|3095616647230|4051809172875|-2549509756796|523598775598
 T6|105|7449832212876|-2503497335467|5266165691593|-4301162633521|523598775598
+#1554|north-up-scale|-1.764418319651|-1.764418319651|t|t|t
+#1554|positive-scale|0.079829985712|0.079829985712|t|t|t

-----------------------------------------------------------------------

Summary of changes:
 raster/test/regress/rt_rotation.sql      | 28 ++++++++++++++++++++++++++++
 raster/test/regress/rt_rotation_expected |  2 ++
 2 files changed, 30 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list