]> granicus.if.org Git - postgis/commitdiff
Add note for future pain
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Jul 2012 04:14:20 +0000 (04:14 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Jul 2012 04:14:20 +0000 (04:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10043 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c

index f472c4e545b16229bf15b29f424f1fb7402ccaee..e00103d601c816b20c010a6278e9978bd1cda0a9 100644 (file)
@@ -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;