[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha2-66-g47b4f14

git at osgeo.org git at osgeo.org
Fri Sep 11 02:47:38 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  47b4f141525e4f7a3f5ca758d5e7f8a273ee5661 (commit)
      from  c97b84fb39976897dc1ef621eab5cc6dc1187efe (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 47b4f141525e4f7a3f5ca758d5e7f8a273ee5661
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Sep 11 11:47:23 2020 +0200

    Add regression tests for fixed precision overlay

diff --git a/regress/core/Makefile.in b/regress/core/Makefile.in
index d10b25e..4db0e8c 100644
--- a/regress/core/Makefile.in
+++ b/regress/core/Makefile.in
@@ -196,7 +196,8 @@ endif
 ifeq ($(shell expr "$(POSTGIS_GEOS_VERSION)" ">=" 39),1)
 	# GEOS-3.0 adds stable maximuminscribedcircle implementation
 	TESTS += \
-		geos39
+		geos39 \
+		fixedoverlay
 endif
 
 ifeq ($(INTERRUPTTESTS),yes)
diff --git a/regress/core/fixedoverlay.sql b/regress/core/fixedoverlay.sql
new file mode 100644
index 0000000..facaaab
--- /dev/null
+++ b/regress/core/fixedoverlay.sql
@@ -0,0 +1,27 @@
+SELECT 'intersection', ST_AsText(ST_Intersection(
+	'LINESTRING(0 0, 9 0)'::geometry,
+	'LINESTRING(7 0, 13.2 0)'::geometry,
+2));
+
+SELECT 'difference', ST_AsText(ST_Difference(
+	'LINESTRING(0 0, 9 0)'::geometry,
+	'LINESTRING(7 0, 13.2 0)'::geometry,
+2));
+
+SELECT 'symdifference', ST_AsText(ST_Difference(
+	'LINESTRING(0 0, 9 0)'::geometry,
+	'LINESTRING(7 0, 13.2 0)'::geometry,
+2));
+
+SELECT 'union', ST_AsText(ST_Union(
+	'LINESTRING(0.5 0, 9 0)'::geometry,
+	'LINESTRING(7 0, 13.2 0)'::geometry,
+ 2));
+
+SELECT 'unaryunion', ST_AsText(ST_UnaryUnion(
+	'GEOMETRYCOLLECTION(LINESTRING(0.5 0, 9 0), LINESTRING(7 0, 13.2 0))'::geometry,
+2));
+
+SELECT 'subdivide', ST_AsText(ST_Subdivide(
+	'POLYGON((0 0,0 10,10 10,10 6,100 5.1, 100 10, 110 10, 110 0, 100 0,100 4.9,10 5,10 0,0 0))'::geometry,
+5, 2));
diff --git a/regress/core/fixedoverlay_expected b/regress/core/fixedoverlay_expected
new file mode 100644
index 0000000..fb5a606
--- /dev/null
+++ b/regress/core/fixedoverlay_expected
@@ -0,0 +1,9 @@
+intersection|LINESTRING(8 0,10 0)
+difference|LINESTRING(0 0,8 0)
+symdifference|LINESTRING(0 0,8 0)
+union|MULTILINESTRING((0 0,8 0),(8 0,10 0),(10 0,14 0))
+unaryunion|MULTILINESTRING((0 0,8 0),(8 0,10 0),(10 0,14 0))
+subdivide|POLYGON((0 10,10 10,10 0,0 0,0 10))
+subdivide|POLYGON((10 6,100 6,100 4,10 6))
+subdivide|POLYGON((100 4,110 4,110 0,100 0,100 4))
+subdivide|POLYGON((100 10,110 10,110 4,100 4,100 10))

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

Summary of changes:
 regress/core/Makefile.in           |  3 ++-
 regress/core/fixedoverlay.sql      | 27 +++++++++++++++++++++++++++
 regress/core/fixedoverlay_expected |  9 +++++++++
 3 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 regress/core/fixedoverlay.sql
 create mode 100644 regress/core/fixedoverlay_expected


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list