]> granicus.if.org Git - postgis/commitdiff
ST_MinimumBoundingCircle needs regression test (#1042)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 7 Feb 2012 23:49:15 +0000 (23:49 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 7 Feb 2012 23:49:15 +0000 (23:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9082 b70326c6-7e19-0410-871a-916f4a2858ee

regress/tickets.sql
regress/tickets_expected

index 0715b09fae85002bbd5949276d2d601cbdac7ba2..680661c511b3dceb949502c970af5c4d5969eb89 100644 (file)
@@ -582,6 +582,10 @@ select '#1150', st_astext(st_transform('SRID=500002;POINT(0 0)',500001));
 -- #1038
 select '#1038', ST_AsSVG('POLYGON EMPTY'::geometry);
 
+-- #1042
+select '#1042',round((st_ymax(st_minimumboundingcircle('LINESTRING(-1 -1, 1 1)')) * st_xmax(st_minimumboundingcircle('LINESTRING(-1 -1, 1 1)')))::numeric,0);
+
+
 -- #1398
 select '#1398a', st_astext(st_snaptogrid(st_project('POINT(-120 45)'::geography, 100000, radians(45))::geometry,0.000001));
 select '#1398b', st_astext(st_snaptogrid(st_project('POINT(20 85)'::geography, 2000000, radians(0.1))::geometry,0.000001));
index b8be5d0ba63b54e296ce5979bfab6d167ae4a157..681279cc893418ea96ec94047065fa565c6f6987 100644 (file)
@@ -193,5 +193,6 @@ ERROR:  MultiSurface cannot contain MultiPoint element
 #1489|MULTIPOINT EMPTY|0|MULTILINESTRING EMPTY|0|MULTIPOLYGON EMPTY|0|GEOMETRYCOLLECTION EMPTY|0
 ERROR:  AddToPROJ4SRSCache: couldn't parse proj4 string: '': (null)
 #1038|
+#1042|2
 #1398a|POINT(-119.093153 45.632669)
 #1398b|POINT(-160.137654 77.091608)