LoginSignup
11
15

More than 5 years have passed since last update.

経緯度と球面メルカトル座標値

Last updated at Posted at 2014-01-27

簡単なのによく忘れるのでメモ。

EPSG:3857

+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 

であるので…

メルカトル座標最大値

> 6378137 * Math.PI
20037508.342789244

経度x°の際の、メルカトルX座標

> var x = 135.0
undefined
> 6378137 * x * Math.PI / 180
15028131.257091932

緯度y°の際の、メルカトルY座標

> var y = 35
undefined
> 6378137 * Math.log(Math.tan(Math.PI / 360 * (90 + y)))
4163881.144064294

メルカトルY座標最大値を取る緯度

> 360 / Math.PI * Math.atan(Math.exp(Math.PI)) - 90
85.05112877980659
11
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
15