[Git][debian-gis-team/postgis][master] regress: Backport fix for oriented-envelope test to be less sensitive.

Christoph Berg gitlab at salsa.debian.org
Mon Oct 14 12:28:15 BST 2019



Christoph Berg pushed to branch master at Debian GIS Project / postgis


Commits:
135d0f70 by Christoph Berg at 2019-10-14T11:27:47Z
regress: Backport fix for oriented-envelope test to be less sensitive.

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/regress-oriented-envelope
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,7 @@ postgis (2.5.3+dfsg-2) UNRELEASED; urgency=medium
     This finally allows us to depend on the -scripts package from the main
     extension package.
   * debian/tests: Run regression tests.
+  * regress: Backport fix for oriented-envelope test to be less sensitive.
   * Add debian/.gitlab-ci.yml.
 
  -- Christoph Berg <myon at debian.org>  Fri, 11 Oct 2019 17:19:19 +0200


=====================================
debian/patches/regress-oriented-envelope
=====================================
@@ -0,0 +1,24 @@
+commit 8150a68de9432f19c1fbdd4ff67be9f320c52187
+Author: Daniel Baston <dbaston at gmail.com>
+Date:   Thu Sep 12 17:47:47 2019 +0000
+
+    Reduce sensitivity of ST_OrientedEnvelope test
+
+    GEOS master produces slightly different coordinate values, at least for now.
+
+
+
+    git-svn-id: http://svn.osgeo.org/postgis/trunk@17807 b70326c6-7e19-0410-871a-916f4a2858ee
+
+diff --git a/regress/core/oriented_envelope.sql b/regress/core/oriented_envelope.sql
+index 6de950825..7029e18be 100644
+--- a/regress/oriented_envelope.sql
++++ b/regress/oriented_envelope.sql
+@@ -8,5 +8,6 @@ SELECT 't3', ST_SRID(ST_OrientedEnvelope('SRID=32611;POINT(4021690.58034526 6040
+ 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)'));
+ -- Also works for normal inputs
+-SELECT 't6', ST_Equals('POLYGON ((3 2, 2.88 2.16, -1.12 -0.84, -1 -1, 3 2))', ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (3 2))'));
++-- 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))';
+


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 link-liblwgeom
 relax-test-timing-constraints.patch
 regress-pg-config
+regress-oriented-envelope



View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/commit/135d0f7016a69259e1fcea370761d60cd5bbd332

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/commit/135d0f7016a69259e1fcea370761d60cd5bbd332
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20191014/c5f3cd52/attachment-0001.html>


More information about the Pkg-grass-devel mailing list