]> granicus.if.org Git - postgis/commitdiff
Used a larger grid for buffer() test, to account for rounding changes between
authorSandro Santilli <strk@keybit.net>
Mon, 27 Mar 2006 09:33:03 +0000 (09:33 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 Mar 2006 09:33:03 +0000 (09:33 +0000)
GEOS-2.2 and GEOS-3.0

git-svn-id: http://svn.osgeo.org/postgis/trunk@2320 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_ogc.sql
regress/regress_ogc_expected

index a43c6fa86108cbf2492b8a96fd2b9722482b27a9..efb6896b56de94fd5a5200da57c4aeefc6381fbc 100644 (file)
@@ -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)')));
index 8be06bd8e58da35a299e1b09714edfbfc3179a42..86a9dfa298e74d42cdba1b1d57f13b3337e59ed0 100644 (file)
@@ -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))