From: Paul Ramsey Date: Sat, 14 Nov 2009 21:14:53 +0000 (+0000) Subject: Move the polar stereographic line a little further north in bestsrid. (#304) X-Git-Tag: 1.5.0b1~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99af9bbfb1be5f5bf89961a233fc52feb64f3307;p=postgis Move the polar stereographic line a little further north in bestsrid. (#304) git-svn-id: http://svn.osgeo.org/postgis/trunk@4812 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geography_measurement.c b/postgis/geography_measurement.c index 3c54488bf..4376ce31f 100644 --- a/postgis/geography_measurement.c +++ b/postgis/geography_measurement.c @@ -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); }