From: Sandro Santilli Date: Mon, 27 Mar 2006 09:33:03 +0000 (+0000) Subject: Used a larger grid for buffer() test, to account for rounding changes between X-Git-Tag: pgis_1_1_2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f17c883dd0fe331648c6d975de61c29280b379d8;p=postgis Used a larger grid for buffer() test, to account for rounding changes between GEOS-2.2 and GEOS-3.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@2320 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/regress_ogc.sql b/regress/regress_ogc.sql index a43c6fa86..efb6896b5 100644 --- a/regress/regress_ogc.sql +++ b/regress/regress_ogc.sql @@ -5,7 +5,7 @@ -- Ouput is snapped to grid to account for small floating numbers -- differences between architectures -SELECT 'buffer', astext(SnapToGrid(buffer('POINT(0 0)', 1, 2), 1.0e-14)); +SELECT 'buffer', astext(SnapToGrid(buffer('POINT(0 0)', 1, 2), 1.0e-6)); SELECT 'geomunion', astext(geomunion('POINT(0 0)', 'POINT(1 1)')); SELECT 'unite_garray', astext(unite_garray(geom_accum('{POINT(0 0)}', 'POINT(2 3)'))); diff --git a/regress/regress_ogc_expected b/regress/regress_ogc_expected index 8be06bd8e..86a9dfa29 100644 --- a/regress/regress_ogc_expected +++ b/regress/regress_ogc_expected @@ -1,4 +1,4 @@ -buffer|POLYGON((1 0,0.70710678120242 -0.70710678117067,4.49e-11 -1,-0.70710678113893 -0.70710678123417,-1 -8.979e-11,-0.70710678126591 0.70710678110718,-1.3469e-10 1,0.70710678107543 0.70710678129766,1 0)) +buffer|POLYGON((1 0,0.707107 -0.707107,0 -1,-0.707107 -0.707107,-1 0,-0.707107 0.707107,0 1,0.707107 0.707107,1 0)) geomunion|MULTIPOINT(0 0,1 1) unite_garray|MULTIPOINT(2 3,0 0) convexhull|POLYGON((0 0,0 10,10 10,10 0,0 0))