Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add correct radius in meters for WGS84 datum.

  • Loading branch information...
commit 256f446d9bd8b6b771fe76150ec37afc12c871e1 1 parent 444fba6
@eightysteele eightysteele authored Robin Kraft committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/clj/forma/gfw/cdm.clj
View
7 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)
Please sign in to comment.
Something went wrong with that request. Please try again.