[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha2-48-gddd41fd
git at osgeo.org
git at osgeo.org
Wed Aug 12 14:00:18 PDT 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, master has been updated
via ddd41fdc0d3d5db63d6b7ad12b609ebf341421ed (commit)
from 99d890475aff67551cac4a3d06cbfe2c222fe581 (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 ddd41fdc0d3d5db63d6b7ad12b609ebf341421ed
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Aug 12 14:00:01 2020 -0700
Be more aggressive about obtaining an outside point from gbox. References #4689
diff --git a/liblwgeom/lwgeodetic_tree.c b/liblwgeom/lwgeodetic_tree.c
index 35b0ff4..9baa8cd 100644
--- a/liblwgeom/lwgeodetic_tree.c
+++ b/liblwgeom/lwgeodetic_tree.c
@@ -476,7 +476,7 @@ int circ_tree_get_point_outside(const CIRC_NODE* node, POINT2D* pt)
{
POINT3D center3d;
GEOGRAPHIC_POINT g;
- if (node->radius >= M_PI) return LW_FAILURE;
+ // if (node->radius >= M_PI) return LW_FAILURE;
geog2cart(&(node->center), ¢er3d);
vector_scale(¢er3d, -1.0);
cart2geog(¢er3d, &g);
diff --git a/regress/core/tickets.sql b/regress/core/tickets.sql
index 37846fc..034720d 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -1295,3 +1295,6 @@ SELECT '#4670-2', ST_AsEWKT(ST_AddPoint('LINESTRING(0 0, 1 1, 3 3, 4 4)'::geomet
SELECT '#4670-3', ST_AsEWKT(ST_AddPoint('LINESTRING(0 0, 1 1, 3 3, 4 4)'::geometry, 'POINT(2 2)'::geometry, 3));
SELECT '#4670-4', ST_AsEWKT(ST_AddPoint('LINESTRING(0 0, 1 1, 3 3, 4 4)'::geometry, 'POINT(2 2)'::geometry, 4));
SELECT '#4670-5', ST_AsEWKT(ST_AddPoint('LINESTRING(0 0, 1 1, 3 3, 4 4)'::geometry, 'POINT(2 2)'::geometry, 5));
+
+SELECT '#4689', _ST_DistanceTree('POLYGON ((30 10, 40 40, 20 40, 30 10))'::geography, 'POLYGON((81 6,140 35,-70 18,-51 0,-60 -46,106 -6,81 6))');
+
diff --git a/regress/core/tickets_expected b/regress/core/tickets_expected
index a495b41..a329953 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -433,3 +433,4 @@ ERROR: BOX2D_construct: args can not be empty points
#4670-3|LINESTRING(0 0,1 1,3 3,2 2,4 4)
#4670-4|LINESTRING(0 0,1 1,3 3,4 4,2 2)
ERROR: LWGEOM_addpoint: Invalid offset
+#4689|0
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/lwgeodetic_tree.c | 2 +-
regress/core/tickets.sql | 3 +++
regress/core/tickets_expected | 1 +
3 files changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list