[SCM] PostGIS branch master updated. 3.6.0rc2-293-g35d31a02d
git at osgeo.org
git at osgeo.org
Tue Jan 20 13:02:28 PST 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 35d31a02d394a2ba5394b1116f78676a286e8d17 (commit)
via 3098a7b687668c767fe7d057306c9078cbd807b3 (commit)
from c7b62c4e42c93d74a9c6890bdfe644db05e10350 (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 35d31a02d394a2ba5394b1116f78676a286e8d17
Merge: c7b62c4e4 3098a7b68
Author: pramsey <pramsey at cleverelephant.ca>
Date: Tue Jan 20 13:02:25 2026 -0800
Merge pull request 'Improve error message from libproj failures' (!207) from strk/postgis:proj-improved-error into master
Reviewed-on: https://gitea.osgeo.org/postgis/postgis/pulls/207
commit 3098a7b687668c767fe7d057306c9078cbd807b3
Author: Sandro Santilli <strk at kbt.io>
Date: Fri Feb 4 21:43:45 2022 +0100
Improve error message from libproj failures
diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index c2b22085a..f5547738b 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -390,7 +390,6 @@ AddToPROJSRSCache(PROJSRSCache *PROJCache, int32_t srid_from, int32_t srid_to)
oldContext = MemoryContextSwitchTo(PROJCache->PROJSRSCacheContext);
-
LWPROJ *projection = NULL;
/* Try combinations of AUTH_NAME:AUTH_SRID/SRTEXT/PROJ4TEXT until we find */
/* one that gives us a usable transform. Note that we prefer */
@@ -410,7 +409,13 @@ AddToPROJSRSCache(PROJSRSCache *PROJCache, int32_t srid_from, int32_t srid_to)
}
if (!projection)
{
- elog(ERROR, "could not form projection (LWPROJ) from 'srid=%d' to 'srid=%d'", srid_from, srid_to);
+ elog(ERROR,
+ "could not form projection (LWPROJ) from srid %d ('%s') to srid %d ('%s')",
+ srid_from,
+ ( pj_from_str ? pj_from_str : "(null)" ),
+ srid_to,
+ ( pj_to_str ? pj_to_str : "(null)" )
+ );
return NULL;
}
-----------------------------------------------------------------------
Summary of changes:
libpgcommon/lwgeom_transform.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list