]> granicus.if.org Git - postgis/commitdiff
Add test for third argument to buffer() being a string (based on auto-cast)
authorSandro Santilli <strk@keybit.net>
Tue, 23 Jun 2009 16:36:23 +0000 (16:36 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 23 Jun 2009 16:36:23 +0000 (16:36 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4191 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_ogc.sql
regress/regress_ogc_expected

index 58a683dc9c5e89bb15f9d1400eaba4cedd6bb599..a76869bb42a0b7d682c2eb16be6b6212d6b7e831 100644 (file)
@@ -6,6 +6,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-6));
+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', equals(unite_garray(geom_accum('{POINT(0 0)}', 'POINT(2 3)')), 'MULTIPOINT(2 3,0 0)');
index b0087f1dbb8644eb2e26afdcf155c9ec84b9160c..183ce808133ec3fe9be1b7f878d2adf45462454c 100644 (file)
@@ -1,4 +1,5 @@
 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))
+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|t
 convexhull|POLYGON((0 0,0 10,10 10,10 0,0 0))