diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2013-10-03 16:18:07 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2013-10-03 16:18:07 +0000 |
| commit | caccc265546d3f707112ed74e0a1e5543a97152e (patch) | |
| tree | 89fc48594b4623713fcf04d58972dcdc27f4107f /src | |
| parent | 1cb0cc0ebf8524f786a65f46502183d1924eb6d2 (diff) | |
| download | PROJ-caccc265546d3f707112ed74e0a1e5543a97152e.tar.gz PROJ-caccc265546d3f707112ed74e0a1e5543a97152e.zip | |
fix windows build for healpix (#223)
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2386 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_healpix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PJ_healpix.c b/src/PJ_healpix.c index 5c07700d..2cc918bb 100644 --- a/src/PJ_healpix.c +++ b/src/PJ_healpix.c @@ -247,11 +247,12 @@ LP healpix_sphere_inverse(XY xy) { lp.phi = asin(8.0*y/(3.0*PI)); } else if (fabsl(y) < PI/2.0) { double cn = floor(2.0*x/PI + 2.0); + double xc, tau; if (cn >= 4) { cn = 3; } - double xc = -3.0*PI/4.0 + (PI/2.0)*cn; - double tau = 2.0 - 4.0*fabsl(y)/PI; + xc = -3.0*PI/4.0 + (PI/2.0)*cn; + tau = 2.0 - 4.0*fabsl(y)/PI; lp.lam = xc + (x - xc)/tau; lp.phi = pj_sign(y)*asin(1.0 - pow(tau , 2.0)/3.0); } else { |
