From: Paul Ramsey Date: Wed, 11 Jul 2012 04:14:20 +0000 (+0000) Subject: Add note for future pain X-Git-Tag: 2.1.0beta2~812 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c182f0a93a50919efe2cb4965edb4a4192569ab7;p=postgis Add note for future pain git-svn-id: http://svn.osgeo.org/postgis/trunk@10043 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index f472c4e54..e00103d60 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -1055,6 +1055,7 @@ int sphere_project(const GEOGRAPHIC_POINT *r, double distance, double azimuth, G lat2 = asin(sin(lat1)*cos(d) + cos(lat1)*sin(d)*cos(azimuth)); /* If we're going straight up or straight down, we don't need to calculate the longitude */ + /* TODO: this isn't quite true, what if we're going over the pole? */ if ( FP_EQUALS(azimuth, M_PI) || FP_EQUALS(azimuth, 0.0) ) { lon2 = r->lon;