]> granicus.if.org Git - postgis/commitdiff
ST_Azimuth, ST_Project regression tests (#1398)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 1 Feb 2012 21:17:10 +0000 (21:17 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 1 Feb 2012 21:17:10 +0000 (21:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9005 b70326c6-7e19-0410-871a-916f4a2858ee

regress/tickets.sql
regress/tickets_expected

index 8c5396883a668e0ab2983b1d5711e4e2f449ac57..0715b09fae85002bbd5949276d2d601cbdac7ba2 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);
 
+-- #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;
 
index 57a99e62889322cfa6c12b477ba5c26165ab7364..b8be5d0ba63b54e296ce5979bfab6d167ae4a157 100644 (file)
@@ -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)