[SCM] PostGIS branch master updated. 3.6.0rc2-471-gb477e8b48
git at osgeo.org
git at osgeo.org
Fri Apr 17 01:27:23 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 b477e8b48705a011f7c029753899168822560c48 (commit)
from 0feee19278e423922717b788dd14cc9823cadc0e (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 b477e8b48705a011f7c029753899168822560c48
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Apr 17 10:25:50 2026 +0200
Add ST_Azimuth tests for NSEW directions
Trying to debug https://www.ict.inaf.it/gitlab/postgis/postgis/-/jobs/149320#L5772
diff --git a/regress/core/azimuth.sql b/regress/core/azimuth.sql
index 2e2977413..affdaa122 100644
--- a/regress/core/azimuth.sql
+++ b/regress/core/azimuth.sql
@@ -10,6 +10,11 @@ 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);;
+
-- #1305
SELECT '#1305.1',ST_AsText(ST_Project('POINT(10 10)'::geography, 0, 0));
diff --git a/regress/core/azimuth_expected b/regress/core/azimuth_expected
index c24002591..217c5ca5a 100644
--- a/regress/core/azimuth_expected
+++ b/regress/core/azimuth_expected
@@ -3,6 +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
#1305.1|POINT(10 10)
#1305.2|t
#1305.3|t
-----------------------------------------------------------------------
Summary of changes:
regress/core/azimuth.sql | 5 +++++
regress/core/azimuth_expected | 4 ++++
2 files changed, 9 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list