[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-550-g07d29463a

git at osgeo.org git at osgeo.org
Thu Jan 12 12:37:42 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, master has been updated
       via  07d29463a26ecc47dc1fd43897d05493a3645700 (commit)
      from  bfe389e553de2f6b3c628fbb6b077dce430289a1 (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 07d29463a26ecc47dc1fd43897d05493a3645700
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 17b861e63..7ce4de725 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -1088,10 +1088,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 cdb129edc..706ef3c5b 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -324,10 +324,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