[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-111-g8b93289
git at osgeo.org
git at osgeo.org
Fri May 8 10:20:57 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 8b932894848b2bb562b41ac649f5cb4e1212c277 (commit)
from ecae381d1b69ae00bb663ef76edf0d24ee7a950a (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 8b932894848b2bb562b41ac649f5cb4e1212c277
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri May 8 10:20:49 2020 -0700
move center point of regression tests a little off-center to hopefully avoid platform specific disagreements about which edge is "nearest"
diff --git a/regress/core/geos39.sql b/regress/core/geos39.sql
index 38799f5..1130d19 100644
--- a/regress/core/geos39.sql
+++ b/regress/core/geos39.sql
@@ -1,34 +1,39 @@
-SELECT 'mic-box' AS name, st_astext(center) AS center,
- st_astext(nearest) AS nearest,
+SELECT 'mic-box' AS name,
+ st_astext(st_snaptogrid(center, 0.0001)) AS center,
+ st_astext(st_snaptogrid(nearest, 0.0001)) AS nearest,
round(radius::numeric,4) AS radius
-FROM ST_MaximumInscribedCircle('Polygon((0 0, 100 0, 100 100, 0 100, 0 0))'::geometry);
+FROM ST_MaximumInscribedCircle('Polygon((0 0, 100 0, 99 98, 0 100, 0 0))'::geometry);
-SELECT 'mic-empty' AS name, st_astext(center) AS center,
- st_astext(nearest) AS nearest,
+SELECT 'mic-empty' AS name,
+ st_astext(st_snaptogrid(center, 0.0001)) AS center,
+ st_astext(st_snaptogrid(nearest, 0.0001)) AS nearest,
round(radius::numeric,4) AS radius
FROM ST_MaximumInscribedCircle('Polygon Empty'::geometry);
SELECT 'mic-null' AS name, center, nearest, radius
FROM ST_MaximumInscribedCircle(NULL);
-SELECT 'mic-line' AS name, st_astext(center) AS center,
- st_astext(nearest) AS nearest,
+SELECT 'mic-line' AS name,
+ st_astext(st_snaptogrid(center, 0.0001)) AS center,
+ st_astext(st_snaptogrid(nearest, 0.0001)) AS nearest,
round(radius::numeric,4) AS radius
-FROM ST_MaximumInscribedCircle('LINESTRING(0 0, 100 0, 100 100, 0 100, 0 0)'::geometry);
+FROM ST_MaximumInscribedCircle('LINESTRING(0 0, 100 0, 99 98, 0 100, 0 0)'::geometry);
-SELECT 'mic-mpoint' AS name, st_astext(center) AS center,
- st_astext(nearest) AS nearest,
+SELECT 'mic-mpoint' AS name,
+ st_astext(st_snaptogrid(center, 0.0001)) AS center,
+ st_astext(st_snaptogrid(nearest, 0.0001)) AS nearest,
round(radius::numeric,4) AS radius
-FROM ST_MaximumInscribedCircle('MULTIPOINT(0 0, 100 0, 100 100, 0 100, 0 0)'::geometry);
+FROM ST_MaximumInscribedCircle('MULTIPOINT(0 0, 100 0, 99 98, 0 100, 0 0)'::geometry);
-SELECT 'mic-point' AS name, st_astext(center) AS center,
- st_astext(nearest) AS nearest,
+SELECT 'mic-point' AS name,
+ st_astext(st_snaptogrid(center, 0.0001)) AS center,
+ st_astext(st_snaptogrid(nearest, 0.0001)) AS nearest,
round(radius::numeric,4) AS radius
FROM ST_MaximumInscribedCircle('POINT(0 0)'::geometry);
WITH p AS (
- SELECT 'Polygon((0 0, 100 0, 100 100, 0 100, 0 0))'::geometry AS ply
+ SELECT 'Polygon((0 0, 100 0, 99 98, 0 100, 0 0))'::geometry AS ply
)
-SELECT 'mic-cte' AS name, ST_AsText((ST_MaximumInscribedCircle(ply)).center)
+SELECT 'mic-cte' AS name, ST_AsText(st_snaptogrid((ST_MaximumInscribedCircle(ply)).center,0.001))
FROM p;
diff --git a/regress/core/geos39_expected b/regress/core/geos39_expected
index 29bf00b..f538159 100644
--- a/regress/core/geos39_expected
+++ b/regress/core/geos39_expected
@@ -1,7 +1,7 @@
-mic-box|POINT(50 50)|POINT(50 0)|50.0000
+mic-box|POINT(49.5117 49.5117)|POINT(50.5111 98.9796)|49.4779
mic-empty|POINT EMPTY|POINT EMPTY|0.0000
mic-null|||
-mic-line|POINT(50 50)|POINT(50 0)|50.0000
-mic-mpoint|POINT(50 50)|POINT(0 0)|70.7107
+mic-line|POINT(49.5117 49.5117)|POINT(50.5111 98.9796)|49.4779
+mic-mpoint|POINT(48.584 49.9512)|POINT(99 98)|69.6453
mic-point|POINT(0 0)|POINT(0 0)|0.0000
-mic-cte|POINT(50 50)
+mic-cte|POINT(49.512 49.512)
-----------------------------------------------------------------------
Summary of changes:
regress/core/geos39.sql | 35 ++++++++++++++++++++---------------
regress/core/geos39_expected | 8 ++++----
2 files changed, 24 insertions(+), 19 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list