From: Paul Ramsey Date: Tue, 7 Feb 2012 23:49:15 +0000 (+0000) Subject: ST_MinimumBoundingCircle needs regression test (#1042) X-Git-Tag: 2.0.0alpha4~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90fbf399ec7344f2005b0634c9bb5e4991f01a1e;p=postgis ST_MinimumBoundingCircle needs regression test (#1042) git-svn-id: http://svn.osgeo.org/postgis/trunk@9082 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/tickets.sql b/regress/tickets.sql index 0715b09fa..680661c51 100644 --- a/regress/tickets.sql +++ b/regress/tickets.sql @@ -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)); diff --git a/regress/tickets_expected b/regress/tickets_expected index b8be5d0ba..681279cc8 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -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)