[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-954-g36fcdd626
git at osgeo.org
git at osgeo.org
Mon May 29 12:10:36 PDT 2023
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 36fcdd626ba8b888119c8a53c7365ca9e9786f61 (commit)
from 7be99c62a1dd9ee272a87d673960e84822a72a66 (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 36fcdd626ba8b888119c8a53c7365ca9e9786f61
Author: Sandro Santilli <strk at kbt.io>
Date: Mon May 29 21:10:09 2023 +0200
Show obtained output on failure, in oriented_envelope test
References #5391
diff --git a/regress/core/oriented_envelope.sql b/regress/core/oriented_envelope.sql
index 7029e18be..6d7c7c0e2 100644
--- a/regress/core/oriented_envelope.sql
+++ b/regress/core/oriented_envelope.sql
@@ -1,13 +1,12 @@
-- It's strict
-SELECT 't1', ST_OrientedEnvelope(NULL::geometry) IS NULL;
+SELECT 't1', ST_OrientedEnvelope(NULL::geometry);
-- Empty polygon on empty inputs
-SELECT 't2', ST_Equals(ST_OrientedEnvelope('POINT EMPTY'), 'POLYGON EMPTY'::geometry);
+SELECT 't2', ST_AsText(ST_OrientedEnvelope('POINT EMPTY'));
-- SRID is preserved
-SELECT 't3', ST_SRID(ST_OrientedEnvelope('SRID=32611;POINT(4021690.58034526 6040138.01373556)')) = 32611;
+SELECT 't3', ST_SRID(ST_OrientedEnvelope('SRID=32611;POINT(4021690.58034526 6040138.01373556)'));
-- Can return Point or LineString on degenerate inputs
-SELECT 't4', ST_Equals('LINESTRING (-1 -1, 2 2)', ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (2 2))'));
-SELECT 't5', ST_Equals('POINT (0.9625 2)', ST_OrientedEnvelope('POINT (0.9625 2)'));
+SELECT 't4', ST_AsText(ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (2 2))'));
+SELECT 't5', ST_AsText(ST_OrientedEnvelope('POINT (0.9625 2)'));
-- Also works for normal inputs
--- Check using text to avoid precision difference between various GEOS versions
-SELECT 't6', ST_AsText(ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (3 2))')) = 'POLYGON((3 2,2.88 2.16,-1.12 -0.84,-1 -1,3 2))';
+SELECT 't6', ST_AsText(ST_Normalize(ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (3 2))')), 2);
diff --git a/regress/core/oriented_envelope_expected b/regress/core/oriented_envelope_expected
index 7590cd39a..5f1ff61cd 100644
--- a/regress/core/oriented_envelope_expected
+++ b/regress/core/oriented_envelope_expected
@@ -1,6 +1,6 @@
-t1|t
-t2|t
-t3|t
-t4|t
-t5|t
-t6|t
+t1|
+t2|POLYGON EMPTY
+t3|32611
+t4|LINESTRING(-1 -1,2 2)
+t5|POINT(0.9625 2)
+t6|POLYGON((-1.12 -0.84,2.88 2.16,3 2,-1 -1,-1.12 -0.84))
-----------------------------------------------------------------------
Summary of changes:
regress/core/oriented_envelope.sql | 13 ++++++-------
regress/core/oriented_envelope_expected | 12 ++++++------
2 files changed, 12 insertions(+), 13 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list