[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.2-13-g6f35cc3

git at osgeo.org git at osgeo.org
Thu Nov 5 11:49:25 PST 2020


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, stable-3.0 has been updated
       via  6f35cc3fec480bc59b3f4911aeb731b43933acdc (commit)
      from  86652985ebacb23f645bfb5cb8f294ffb64e9ceb (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 6f35cc3fec480bc59b3f4911aeb731b43933acdc
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Nov 5 11:49:10 2020 -0800

    Swap axes that have 'Lat' in the first axis. Don't swap axes that are 'Easting' first. After that, believe the directionality provided and swap any 'north' axes. If you still don't know what to do, just leave the axes alone.
    References #4748

diff --git a/NEWS b/NEWS
index b530c59..b77e313 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PostGIS 3.0.3dev
   - #4739, Ensure all functions using postgis_oid initialize the internal cache (Raúl Marín)
   - #4767, #4768, #4771, #4772, Fix segfault when parsing invalid WKB (Raúl Marín)
   - #4769, Fix segfault in st_addband (Raúl Marín)
+  - #4748, Fix incorrect axis swapping in polar stereographic (Paul Ramsey)
 
 PostGIS 3.0.2
 2020/08/15
diff --git a/liblwgeom/lwgeom_transform.c b/liblwgeom/lwgeom_transform.c
index b7e9636..06559f4 100644
--- a/liblwgeom/lwgeom_transform.c
+++ b/liblwgeom/lwgeom_transform.c
@@ -256,7 +256,16 @@ proj_crs_is_swapped(const PJ *pj_crs)
 				      &out_unit_name,
 				      &out_unit_auth_name,
 				      &out_unit_code);
-		rv = (strcasecmp(out_direction, "north") == 0);
+		if (strcasecmp(out_abbrev, "E") == 0)
+			rv = LW_FALSE;
+		else if (strcasecmp(out_abbrev, "Lat") == 0)
+			rv = LW_TRUE;
+		else if (strcasecmp(out_direction, "north") == 0)
+			rv = LW_TRUE;
+		else if (strcasecmp(out_direction, "south") == 0)
+			rv = LW_TRUE;
+		else
+			rv = LW_FALSE;
 	}
 	proj_destroy(pj_cs);
 	return rv;

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

Summary of changes:
 NEWS                         |  1 +
 liblwgeom/lwgeom_transform.c | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list