[SCM] PostGIS branch master updated. 3.5.0-309-g9c33bcbac

git at osgeo.org git at osgeo.org
Tue May 6 18:44:19 PDT 2025


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  9c33bcbac5ed4171da414523c71b0cf3f110c024 (commit)
      from  935e23f3c42b24ed9074e77e5473ae18ab8eedbe (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 9c33bcbac5ed4171da414523c71b0cf3f110c024
Author: Regina Obe <lr at pcorp.us>
Date:   Tue May 6 21:42:19 2025 -0400

    Reduce precision so
    ST_MinimumInscribedCircle agree in 3.14 and earlier geos
    Closes #5893 for PostGIS 3.6.0

diff --git a/regress/core/geos39.sql b/regress/core/geos39.sql
index 5ffd02e7f..9d5e02553 100644
--- a/regress/core/geos39.sql
+++ b/regress/core/geos39.sql
@@ -1,8 +1,8 @@
 
 SELECT 'mic-box' AS name,
-       st_astext(center, 4) AS center,
-       st_astext(nearest, 4) AS nearest,
-       round(radius::numeric,4) AS radius
+       st_astext(center, 1) AS center,
+       st_astext(nearest, 1) AS nearest,
+       round(radius::numeric,1) AS radius
 FROM ST_MaximumInscribedCircle('Polygon((0 0, 100 0, 99 98, 0 100, 0 0))'::geometry);
 
 SELECT 'mic-empty' AS name,
@@ -35,7 +35,7 @@ FROM ST_MaximumInscribedCircle('POINT(0 0)'::geometry);
 WITH p AS (
 	SELECT 'Polygon((0 0, 100 0, 99 98, 0 100, 0 0))'::geometry AS ply
 )
-SELECT 'mic-cte' AS name, ST_AsText(st_snaptogrid((ST_MaximumInscribedCircle(ply)).center,0.001))
+SELECT 'mic-cte' AS name, ST_AsText(st_snaptogrid((ST_MaximumInscribedCircle(ply)).center,0.1))
 	FROM p;
 
 -- ST_ReducePrecision
diff --git a/regress/core/geos39_expected b/regress/core/geos39_expected
index 3bfd0eb36..cc507a7f4 100644
--- a/regress/core/geos39_expected
+++ b/regress/core/geos39_expected
@@ -1,10 +1,10 @@
-mic-box|POINT(49.5117 49.5117)|POINT(50.5111 98.9796)|49.4779
+mic-box|POINT(49.5 49.5)|POINT(50.5 99)|49.5
 mic-empty|POINT EMPTY|POINT EMPTY|0.0000
 mic-null|||
 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(49.512 49.512)
+mic-cte|POINT(49.5 49.5)
 rp-1|POINT(1.4 19.3)
 rp-2|POINT(1 19)
 rp-3|POINT(0 20)

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

Summary of changes:
 regress/core/geos39.sql      | 8 ++++----
 regress/core/geos39_expected | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list