[SCM] PostGIS branch master updated. 3.4.0rc1-787-g8af35118b
git at osgeo.org
git at osgeo.org
Sun Nov 19 22:50:34 PST 2023
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 8af35118bd1b1524945085d6500584b7e2b8debd (commit)
via d1abcc12826e00f80a17ef0928f8cf825d0fadee (commit)
via 22937a5ba61be60210bd5397d877e24a415a0901 (commit)
from 966f687e50fed58c16ac856a67f87b7c390bb859 (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 8af35118bd1b1524945085d6500584b7e2b8debd
Author: Regina Obe <lr at pcorp.us>
Date: Mon Nov 20 01:50:21 2023 -0500
Fix ST_Project lon,lon issue. References #5581 for PostGIS 3.5.0
diff --git a/liblwgeom/measures.c b/liblwgeom/measures.c
index 3469d29d7..3e255f9ec 100644
--- a/liblwgeom/measures.c
+++ b/liblwgeom/measures.c
@@ -2487,7 +2487,7 @@ project_pt(const POINT2D *P, double distance, double azimuth, POINT2D *R)
double dx = cos(slope) * distance;
double dy = sin(slope) * distance;
R->x = P->x + dx;
- R->y = P->x + dy;
+ R->y = P->y + dy;
return LW_TRUE;
}
commit d1abcc12826e00f80a17ef0928f8cf825d0fadee
Author: Regina Obe <lr at pcorp.us>
Date: Mon Nov 20 01:17:03 2023 -0500
Regression failure when installed by non-superuser
Closes #5525 for PostGIS 3.5.0
diff --git a/libpgcommon/sql/AddToSearchPath.sql.inc b/libpgcommon/sql/AddToSearchPath.sql.inc
index c3746c522..a5e02279e 100644
--- a/libpgcommon/sql/AddToSearchPath.sql.inc
+++ b/libpgcommon/sql/AddToSearchPath.sql.inc
@@ -29,7 +29,8 @@ BEGIN
RAISE NOTICE 'cur_search_path from pg_db_role_setting is %', var_cur_search_path;
- IF var_cur_search_path IS NULL THEN
+ -- only run this test if person creating the extension is a super user
+ IF var_cur_search_path IS NULL AND (SELECT rolsuper FROM pg_roles where rolname = CURRENT_USER) THEN
SELECT setting
INTO var_cur_search_path
FROM pg_file_settings
commit 22937a5ba61be60210bd5397d877e24a415a0901
Author: Regina Obe <lr at pcorp.us>
Date: Mon Nov 20 01:14:55 2023 -0500
Fix ST_LineExtend example closes #5594 for PostGIS 3.5.0
diff --git a/doc/reference_editor.xml b/doc/reference_editor.xml
index 69ac545d0..6f524ec14 100644
--- a/doc/reference_editor.xml
+++ b/doc/reference_editor.xml
@@ -1278,9 +1278,9 @@ SELECT ST_AsText(ST_Multi('POLYGON ((10 30, 30 30, 30 10, 10 10, 10 30))'));
<title>Example: Projected point at 100,000 meters and bearing 45 degrees </title>
<programlisting>
-SELECT ST_AsText(ST_Project('POINT(0 0)'::geography, 100000, radians(45.0)));
+SELECT ST_AsText(ST_LineExtend('LINESTRING(0 0, 0 10)'::geometry, 5, 6));
--------------------------------------------
- POINT(0.635231029125537 0.639472334729198)
+LINESTRING(0 -6,0 0,0 10,0 15)
</programlisting>
</refsection>
-----------------------------------------------------------------------
Summary of changes:
doc/reference_editor.xml | 4 ++--
liblwgeom/measures.c | 2 +-
libpgcommon/sql/AddToSearchPath.sql.inc | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list