0.01
No commit activity in last 3 years
No release in over 3 years
[ruby译]地球坐标系 (WGS-84) 到火星坐标系 (GCJ-02) 的转换算法.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
 Project Readme

evil_transform

[ruby译]地球坐标系 (WGS-84) 到火星坐标系 (GCJ-02) 的转换算法

Code from https://on4wp7.codeplex.com/SourceControl/changeset/view/21483#353936

Usage

gem install evil_transform
EvilTransform.to_MGS(lat: 39.909745000000, lon: 116.359496000000)
# => [39.911112866392486, 116.36569790916941]

EvilTransform.new(lat: 39.909745000000, lon: 116.359496000000).to_MGS
# => [39.911112866392486, 116.36569790916941]

Methods

  • #to_MGS Mars Geodetic System
  • #to_WGS World Geodetic System
  • #to_BGS Baidu Geodetic System
  • #bgs_to_MGS Baidu Geodetic System ==> Mars Geodetic System