[postgis-tickets] [SCM] PostGIS branch stable-2.4 updated. 2.4.9-7-g58b5c3b

git at osgeo.org git at osgeo.org
Mon Jul 26 14:35:03 PDT 2021


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-2.4 has been updated
       via  58b5c3b8c6641f45a408231a9e2aa946408cfe59 (commit)
       via  beb5134929411b5664f7db9d728730e71d593f2a (commit)
       via  d0ceaf87cc5f55cc5f5f0d62212f33f86d0cdeaf (commit)
      from  ce413e1b8992fcaea5b32a394c4d8b1056479dad (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 58b5c3b8c6641f45a408231a9e2aa946408cfe59
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jul 26 14:34:58 2021 -0700

    Error in arc direction flagging, fixes #4326

diff --git a/NEWS b/NEWS
index 80339bb..1483cfb 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ YYYY/MM/DD
   - #4757, Handle line collapse due to snap-to-existing node (Sandro Santilli)
   - #4769, Fix segfault in st_addband (Raúl Marín)
   - #4727, Fix geocentric bounding box computation for rare case (Paul Ramsey)
+  - #4326, Fix CircularPolygon area calculation (Paul Ramsey)
 
 
 PostGIS 2.4.9
diff --git a/liblwgeom/cunit/cu_measures.c b/liblwgeom/cunit/cu_measures.c
index d860f56..bc8f666 100644
--- a/liblwgeom/cunit/cu_measures.c
+++ b/liblwgeom/cunit/cu_measures.c
@@ -201,6 +201,12 @@ static void test_mindistance2d_tolerance(void)
 	*/
 	DIST2DTEST("LINESTRING(0.5 1,0.5 3)", "MULTICURVE(CIRCULARSTRING(2 3,3 2,2 1,1 2,2 3),(0 0, 0 5))", 0.5);
 
+	/*
+	** Ticket 4326
+	*/
+	DIST2DTEST(
+		"CURVEPOLYGON(CIRCULARSTRING(7874821 8715927,8907663 8715927,8844683 7750316,7937800 7750316,7874821 8715927))",
+		"POINT(5433865 8243495)", 2271704.2698450615, default_accepted_error);
 }
 
 static void
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index c7cc1e3..9eff092 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -944,7 +944,7 @@ ptarrayarc_contains_point_partial(const POINTARRAY *pa, const POINT2D *pt, int c
 		}
 
 		/* Going "down"! */
-		if ( side > 0 && (seg2->y <= pt->y) && (pt->y < seg1->y) )
+		if ( side > 0 && (seg3->y <= pt->y) && (pt->y < seg1->y) )
 		{
 			wn--;
 		}

commit beb5134929411b5664f7db9d728730e71d593f2a
Merge: d0ceaf8 ce413e1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Jul 26 14:34:41 2021 -0700

    Merge branch 'stable-2.4' of https://git.osgeo.org/gitea/postgis/postgis into stable-2.4

diff --cc NEWS
index 16b9c27,a77e530..80339bb
--- a/NEWS
+++ b/NEWS
@@@ -3,10 -3,10 +3,12 @@@ YYYY/MM/D
  
    * Bug Fixes and Enhancements *
  
+   - #4871, TopoGeometry::geometry cast returns NULL for empty
+            TopoGeometry objects (Sandro Santilli)
    - #4757, Handle line collapse due to snap-to-existing node (Sandro Santilli)
    - #4769, Fix segfault in st_addband (Raúl Marín)
 +  - #4727, Fix geocentric bounding box computation for rare case (Paul Ramsey)
 +
  
  PostGIS 2.4.9
  2020/08/14

commit d0ceaf87cc5f55cc5f5f0d62212f33f86d0cdeaf
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Nov 5 14:46:57 2020 -0800

    Long-standing bug in pole adjustment code for bounding boxes.
    Results in incorrect box for shapes wrapping the negative Y geocentric axis (-90,0)
    Closes #4727

diff --git a/NEWS b/NEWS
index e6b96b3..16b9c27 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,8 @@ YYYY/MM/DD
 
   - #4757, Handle line collapse due to snap-to-existing node (Sandro Santilli)
   - #4769, Fix segfault in st_addband (Raúl Marín)
+  - #4727, Fix geocentric bounding box computation for rare case (Paul Ramsey)
+
 
 PostGIS 2.4.9
 2020/08/14
diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c
index 263356b..347c5fd 100644
--- a/liblwgeom/lwgeodetic.c
+++ b/liblwgeom/lwgeodetic.c
@@ -356,7 +356,7 @@ static int gbox_check_poles(GBOX *gbox)
 		else if ((gbox->ymin < 0.0) && (gbox->ymax < 0.0))
 		{
 			LWDEBUG(4, "enclosed negative y axis");
-			gbox->ymax = -1.0;
+			gbox->ymin = -1.0;
 		}
 		else
 		{

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

Summary of changes:
 NEWS                          | 3 +++
 liblwgeom/cunit/cu_measures.c | 6 ++++++
 liblwgeom/lwgeodetic.c        | 2 +-
 liblwgeom/ptarray.c           | 2 +-
 4 files changed, 11 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list