From: Paul Ramsey Date: Wed, 1 Feb 2012 21:17:10 +0000 (+0000) Subject: ST_Azimuth, ST_Project regression tests (#1398) X-Git-Tag: 2.0.0alpha4~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d7805f287f175f35ef846431d7525ebfb300ede;p=postgis ST_Azimuth, ST_Project regression tests (#1398) git-svn-id: http://svn.osgeo.org/postgis/trunk@9005 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/tickets.sql b/regress/tickets.sql index 8c5396883..0715b09fa 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); +-- #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)); + -- Clean up DELETE FROM spatial_ref_sys; diff --git a/regress/tickets_expected b/regress/tickets_expected index 57a99e628..b8be5d0ba 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -193,3 +193,5 @@ 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| +#1398a|POINT(-119.093153 45.632669) +#1398b|POINT(-160.137654 77.091608)