Permalink
Browse files

Add correct radius in meters for WGS84 datum.

  • Loading branch information...
1 parent 444fba6 commit 256f446d9bd8b6b771fe76150ec37afc12c871e1 @eightysteele eightysteele committed with Robin Kraft May 10, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/clj/forma/gfw/cdm.clj
@@ -8,11 +8,10 @@
http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/globalmaptiles.py
"
- (:use [clojure.math.numeric-tower :only (expt, round)]
- [forma.reproject :only (rho) :as rho]))
+ (:use [clojure.math.numeric-tower :only (expt, round)]))
-;; Round rho for MODIS (6371007.181) down to 6371007 for use in tile projections.
-(def radius (round rho))
+;; Exact radius of the Earth in meters for the WGS84 datum.
+(def radius 6378137)
;; The dimension of a Google Map tile is 256x256 pixels.
(def map-tile-dim 256)

0 comments on commit 256f446

Please sign in to comment.