[SCM] PostGIS branch master updated. 3.6.0rc2-472-g92fd4dd04
git at osgeo.org
git at osgeo.org
Fri Apr 17 01:33:03 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 92fd4dd04a8e923ea36ad7cbce44f6cf063f7299 (commit)
from b477e8b48705a011f7c029753899168822560c48 (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 92fd4dd04a8e923ea36ad7cbce44f6cf063f7299
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Apr 17 10:32:37 2026 +0200
Make azimuth test more useful in case of failure
Shows obtained numbers now.
diff --git a/regress/core/azimuth.sql b/regress/core/azimuth.sql
index affdaa122..6405e1967 100644
--- a/regress/core/azimuth.sql
+++ b/regress/core/azimuth.sql
@@ -10,10 +10,16 @@ FROM CAST('POINT(0 1)' AS geometry) AS geom1, ST_GeomFromText('LINESTRING(1 0 ,2
SELECT 'ST_Azimuth_null_geom' , ST_Azimuth(geom1,geom2)
FROM CAST('POINT(0 1)' AS geometry) AS geom1, ST_GeomFromText('EMPTY') AS geom2;
-SELECT 'north', ST_Azimuth('POINT(0 0)'::geometry, 'POINT(0 10)'::geometry); -- intentionally not rounded
-SELECT 'south', round(ST_Azimuth('POINT(0 0)'::geometry, 'POINT(0 -10)'::geometry)::numeric, 2);
-SELECT 'east', round(ST_Azimuth('POINT(0 0)'::geometry, 'POINT(10 0)'::geometry)::numeric, 2);
-SELECT 'west', round(ST_Azimuth('POINT(0 0)'::geometry, 'POINT(-10 0)'::geometry)::numeric, 2);;
+with inp(l,g) as ( VALUES
+ ('north', 'LINESTRING(0 0, 0 10)'::geometry ),
+ ('east', 'LINESTRING(0 0, 10 0)'::geometry ),
+ ('south', 'LINESTRING(0 0, 0 -10)'::geometry ),
+ ('west', 'LINESTRING(0 0, -10 0)'::geometry )
+), azim as (
+ SELECT l, g, ST_Azimuth(ST_PointN(g,1), ST_PointN(g,2)) az FROM inp
+)
+SELECT 'ordering', l, CASE WHEN az = 0 THEN az ELSE round(az::numeric, 2) END
+FROM azim ORDER BY az;
-- #1305
diff --git a/regress/core/azimuth_expected b/regress/core/azimuth_expected
index 217c5ca5a..6536ef3eb 100644
--- a/regress/core/azimuth_expected
+++ b/regress/core/azimuth_expected
@@ -3,10 +3,10 @@ ST_Azimuth_same_point|
ERROR: Operation on mixed SRID geometries
ERROR: Argument must be POINT geometries
ERROR: parse error - invalid geometry
-north|0
-south|3.14
-east|1.57
-west|4.71
+ordering|north|0
+ordering|east|1.57
+ordering|south|3.14
+ordering|west|4.71
#1305.1|POINT(10 10)
#1305.2|t
#1305.3|t
-----------------------------------------------------------------------
Summary of changes:
regress/core/azimuth.sql | 14 ++++++++++----
regress/core/azimuth_expected | 8 ++++----
2 files changed, 14 insertions(+), 8 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list