]> granicus.if.org Git - postgis/commitdiff
Move the polar stereographic line a little further north in bestsrid. (#304)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 14 Nov 2009 21:14:53 +0000 (21:14 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 14 Nov 2009 21:14:53 +0000 (21:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4812 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geography_measurement.c

index 3c54488bf5cd7b66f4b516ac27f75517f23df7c4..4376ce31fd144a617aaf73b7bfbbcb7e7a415674 100644 (file)
@@ -522,13 +522,13 @@ Datum geography_bestsrid(PG_FUNCTION_ARGS)
 
        
        /* Are these data arctic? Polar stereographic north. */
-       if( gbox1.ymin > 60.0 && gbox2.ymin > 60.0 )
+       if( gbox1.ymin > 65.0 && gbox2.ymin > 65.0 )
        {
                PG_RETURN_INT32(-3995);
        }
 
        /* Are these data antarctic? Polar stereographic south. */
-       if( gbox1.ymin < -60.0 && gbox2.ymin < -60.0 )
+       if( gbox1.ymin < -65.0 && gbox2.ymin < -65.0 )
        {
                PG_RETURN_INT32(-3995);
        }