[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.3-25-ge4c3f5e
git at osgeo.org
git at osgeo.org
Mon Jul 26 14:32:50 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-3.0 has been updated
via e4c3f5e7de1ec89f9c783a27ed818a92487b1b8f (commit)
from 9e90d70b6ad289fa7e298f1173ff1254d558a004 (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 e4c3f5e7de1ec89f9c783a27ed818a92487b1b8f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Jul 26 14:32:46 2021 -0700
Error in arc direction flagging, fixes #4326
diff --git a/NEWS b/NEWS
index 72e3fb2..d3aa00a 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ PostGIS 3.0.4dev
- #4863, Update bboxes after scale/affine coordinate changes (Paul Ramsey)
- #4918, Fix rare crash in st_minpossiblevalue() (Paul Ramsey)
- #4949, Swapped coordinates for N/E planar systems (Paul Ramsey)
+ - #4326, Fix CircularPolygon area calculation (Paul Ramsey)
PostGIS 3.0.3
diff --git a/liblwgeom/cunit/cu_measures.c b/liblwgeom/cunit/cu_measures.c
index 8867992..141b7e0 100644
--- a/liblwgeom/cunit/cu_measures.c
+++ b/liblwgeom/cunit/cu_measures.c
@@ -208,6 +208,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, default_accepted_error);
+ /*
+ ** 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 6f72476..65a50fc 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -941,7 +941,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--;
}
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
liblwgeom/cunit/cu_measures.c | 6 ++++++
liblwgeom/ptarray.c | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list