[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.2-22-g6ae0b4e89
git at osgeo.org
git at osgeo.org
Wed Feb 15 11:37:08 PST 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, stable-3.3 has been updated
via 6ae0b4e89b05ae76beaacb0d07408b1e4028d1f5 (commit)
from 7ee8dda4c8789f93b38bab91949a2f37a4be151d (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 6ae0b4e89b05ae76beaacb0d07408b1e4028d1f5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Jan 12 12:37:36 2023 -0800
Make exception test a little less dependent on exception text
diff --git a/regress/core/tickets.sql b/regress/core/tickets.sql
index 3ce4a3b01..590d64c13 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -1087,10 +1087,24 @@ select '#4025', ST_DistanceCPA (
);
-- a butterfly polygon in all cases
-SELECT '#4037.1', ST_AsText(ST_Intersection('POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))', ST_MakeEnvelope(2,2,8,8)));
-SELECT '#4037.2', ST_AsText(ST_Difference('POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))', ST_MakeEnvelope(2,2,8,8)));
-SELECT '#4037.3', ST_AsText(ST_SymDifference('POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))', ST_MakeEnvelope(2,2,8,8)));
-SELECT '#4037.4', ST_AsText(ST_Union('POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))', ST_MakeEnvelope(2,2,8,8)));
+CREATE FUNCTION catcherror(sql text)
+RETURNS text
+AS $$
+BEGIN
+ EXECUTE sql;
+ RETURN 'NO ERROR';
+EXCEPTION WHEN OTHERS THEN
+ RETURN SQLERRM;
+END;
+$$
+LANGUAGE 'plpgsql';
+
+SELECT '#4037.1', Left(catcherror('SELECT ST_Intersection(''POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))'', ST_MakeEnvelope(2,2,8,8))'),55);
+SELECT '#4037.2', Left(catcherror('SELECT ST_Difference(''POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))'', ST_MakeEnvelope(2,2,8,8))'),53);
+SELECT '#4037.3', Left(catcherror('SELECT ST_SymDifference(''POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))'', ST_MakeEnvelope(2,2,8,8))'),56);
+SELECT '#4037.4', Left(catcherror('SELECT ST_Union(''POLYGON((0 0, 10 10, 0 10, 10 0, 0 0))'', ST_MakeEnvelope(2,2,8,8))'),48);
+
+DROP FUNCTION catcherror(text);
-- #4055
SELECT '#4055a', ST_SRID(unnest(ST_ClusterWithin(ARRAY['SRID=4326;POINT (3 7)'::geometry, 'SRID=4326;LINESTRING (3 0, 3 9)'], 0)));
diff --git a/regress/core/tickets_expected b/regress/core/tickets_expected
index 3494f6242..35d4241c0 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -325,10 +325,10 @@ NOTICE: Too few points in geometry component at or near point 0 0
#4011|ST_MultiLineString|MULTILINESTRING EMPTY|t|t
#4011|ST_GeometryCollection|MULTILINESTRING((0 0,0 0))|f|f
#4025|
-ERROR: lwgeom_intersection_prec: GEOS Error: TopologyException: Input geom 0 is invalid: Self-intersection
-ERROR: lwgeom_difference_prec: GEOS Error: TopologyException: Input geom 0 is invalid: Self-intersection
-ERROR: lwgeom_symdifference_prec: GEOS Error: TopologyException: Input geom 0 is invalid: Self-intersection
-ERROR: lwgeom_union_prec: GEOS Error: TopologyException: Input geom 0 is invalid: Self-intersection
+#4037.1|lwgeom_intersection_prec: GEOS Error: TopologyException
+#4037.2|lwgeom_difference_prec: GEOS Error: TopologyException
+#4037.3|lwgeom_symdifference_prec: GEOS Error: TopologyException
+#4037.4|lwgeom_union_prec: GEOS Error: TopologyException
#4055a|4326
#4055b|4326
#4089|LINESTRING Z (1 1 1,3 3 1)
-----------------------------------------------------------------------
Summary of changes:
regress/core/tickets.sql | 22 ++++++++++++++++++----
regress/core/tickets_expected | 8 ++++----
2 files changed, 22 insertions(+), 8 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list