[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-993-g61bdf43a7
git at osgeo.org
git at osgeo.org
Wed Jun 21 15:39:17 PDT 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 61bdf43a72ca68968ee19a59bbe3720edc2003e7 (commit)
from 8fd02bc3ac8fe9c96635efd1f32d9ef9ea938bdf (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 61bdf43a72ca68968ee19a59bbe3720edc2003e7
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Jun 21 15:39:13 2023 -0700
Add results of proj_context_get_database_path to proj version string
diff --git a/postgis/lwgeom_transform.c b/postgis/lwgeom_transform.c
index 105720bb5..bb43b319f 100644
--- a/postgis/lwgeom_transform.c
+++ b/postgis/lwgeom_transform.c
@@ -213,15 +213,20 @@ Datum postgis_proj_version(PG_FUNCTION_ARGS)
#endif
#if POSTGIS_PROJ_VERSION >= 70
+
stringbuffer_aprintf(&sb,
- " PROJ_NETWORK=%s",
+ " NETWORK_ENABLED=%s",
proj_context_is_network_enabled(NULL) ? "ON" : "OFF");
if (proj_context_get_url_endpoint(NULL))
- stringbuffer_aprintf(&sb, " PROJ_URL_ENDPOINT=%s", proj_context_get_url_endpoint(NULL));
+ stringbuffer_aprintf(&sb, " URL_ENDPOINT=%s", proj_context_get_url_endpoint(NULL));
if (proj_context_get_user_writable_directory(NULL, 0))
- stringbuffer_aprintf(&sb, " PROJ_GRID_DIRECTORY=%s", proj_context_get_user_writable_directory(NULL, 0));
+ stringbuffer_aprintf(&sb, " USER_WRITABLE_DIRECTORY=%s", proj_context_get_user_writable_directory(NULL, 0));
+
+ if (proj_context_get_database_path(NULL))
+ stringbuffer_aprintf(&sb, " DATABASE_PATH=%s", proj_context_get_database_path(NULL));
+
#endif
PG_RETURN_POINTER(cstring_to_text(stringbuffer_getstring(&sb)));
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_transform.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list