From: Paul Ramsey Date: Thu, 20 Aug 2015 18:24:42 +0000 (+0000) Subject: Round off test results for precision match X-Git-Tag: 2.2.0rc1~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e1e3d510fefcee5b0abe59b30170919895373a9;p=postgis Round off test results for precision match git-svn-id: http://svn.osgeo.org/postgis/trunk@13955 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/geography.sql b/regress/geography.sql index f68022b64..f9a769aff 100644 --- a/regress/geography.sql +++ b/regress/geography.sql @@ -97,10 +97,10 @@ SELECT '#2422' as ticket, gid, radius, _ST_DWithin(geog, tgeog, radius, true) AS dwithin_t, _ST_DWithin(geog, tgeog, radius, false) AS dwithin_f, -ST_Distance(geog, tgeog, true) AS distance_t, -ST_Distance(geog, tgeog, false) AS distance_f, -_ST_DistanceUnCached(geog, tgeog) AS distance_uncached, -_ST_DistanceTree(geog, tgeog) AS distance_tree +round(ST_Distance(geog, tgeog, true)::numeric,3) AS distance_t, +round(ST_Distance(geog, tgeog, false)::numeric,3) AS distance_f, +round(_ST_DistanceUnCached(geog, tgeog)::numeric,3) AS distance_uncached, +round(_ST_DistanceTree(geog, tgeog)::numeric,3) AS distance_tree FROM dwithgeogbug CROSS JOIN ST_GeogFromText('POINT(-69.83262 43.43636)') AS tgeog CROSS JOIN (VALUES (1609),(1600),(1068)) AS t (radius) diff --git a/regress/geography_expected b/regress/geography_expected index f7abde4ad..dc9f2be96 100644 --- a/regress/geography_expected +++ b/regress/geography_expected @@ -21,9 +21,9 @@ geog_precision_savffir|0|0 geog_precision_pazafir|0|0 geog_precision_pazafir|0|0 1|MULTILINESTRING((0 0,1 1)) -#2422|2|1609|t|t|1005.62727977|1006.24818105|1005.62727976958|1005.62727976958 -#2422|2|1600|t|t|1005.62727977|1006.24818105|1005.62727976958|1005.62727976958 -#2422|2|1068|t|t|1005.62727977|1006.24818105|1005.62727976958|1005.62727976958 -#2422|1|1609|t|t|1400.23034685|1396.81609491|1400.23034684753|1400.23034684753 -#2422|1|1600|t|t|1400.23034685|1396.81609491|1400.23034684753|1400.23034684753 -#2422|1|1068|f|f|1400.23034685|1396.81609491|1400.23034684753|1400.23034684753 +#2422|2|1609|t|t|1005.627|1006.248|1005.627|1005.627 +#2422|2|1600|t|t|1005.627|1006.248|1005.627|1005.627 +#2422|2|1068|t|t|1005.627|1006.248|1005.627|1005.627 +#2422|1|1609|t|t|1400.230|1396.816|1400.230|1400.230 +#2422|1|1600|t|t|1400.230|1396.816|1400.230|1400.230 +#2422|1|1068|f|f|1400.230|1396.816|1400.230|1400.230