[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-484-g124c8c7cd

git at osgeo.org git at osgeo.org
Fri Feb 4 12:44:10 PST 2022


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  124c8c7cd13587a8f84c64a99031c335971cc0dd (commit)
      from  5249ed6a90d784a4c64b60d61ab3594aabc869df (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 124c8c7cd13587a8f84c64a99031c335971cc0dd
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Feb 4 20:00:38 2022 +0100

    Fix outdated comments
    
    [ci skip]

diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index 8fff33625..fd2401272 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -53,7 +53,7 @@ PROJSRSCache *PROJ_CACHE = NULL;
  * from spatial_ref_sys query.
  */
 typedef struct {
-	char* authtext;
+	char* authtext; /* auth_name:auth_srid */
 	char* srtext;
 	char* proj4text;
 } PjStrs;
@@ -245,7 +245,9 @@ GetProjStringsSPI(int32_t srid)
 
 
 /**
- *  Given an SRID, return the proj4 text.
+ *  Given an SRID, return the corresponding proj strings
+ *  (auth_name:auth_srid/srtext/proj4text)
+ *
  *  If the integer is one of the "well known" projections we support
  *  (WGS84 UTM N/S, Polar Stereographic N/S - see SRID_* macros),
  *  return the proj4text for those.
@@ -440,9 +442,9 @@ AddToPROJSRSCache(PROJSRSCache *PROJCache, int32_t srid_from, int32_t srid_to)
 #else
 
 	LWPROJ *projection = NULL;
-	/* Try combinations of ESPG/SRTEXT/PROJ4TEXT until we find */
+	/* Try combinations of AUTH_NAME:AUTH_SRID/SRTEXT/PROJ4TEXT until we find */
 	/* one that gives us a usable transform. Note that we prefer */
-	/* EPSG numbers over SRTEXT and SRTEXT over PROJ4TEXT */
+	/* AUTH_NAME:AUTH_SRID over SRTEXT and SRTEXT over PROJ4TEXT */
 	/* (3 entries * 3 entries = 9 combos) */
 	uint32_t i;
 	for (i = 0; i < 9; i++)

-----------------------------------------------------------------------

Summary of changes:
 libpgcommon/lwgeom_transform.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list