]> granicus.if.org Git - postgis/commitdiff
Reduce sensitivity of ST_OrientedEnvelope test
authorDaniel Baston <dbaston@gmail.com>
Thu, 12 Sep 2019 17:47:47 +0000 (17:47 +0000)
committerDaniel Baston <dbaston@gmail.com>
Thu, 12 Sep 2019 17:47:47 +0000 (17:47 +0000)
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

regress/core/oriented_envelope.sql

index 6de9508254751b87b11853fa784461aa8a8f4212..7029e18be51de5b621516043a0cdf34e03650ba2 100644 (file)
@@ -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))';