Skip to content

Instantly share code, notes, and snippets.

View lihongjie0209's full-sized avatar

李宏杰 lihongjie0209

  • 海南海口
View GitHub Profile
@lihongjie0209
lihongjie0209 / README.md
Created June 13, 2023 06:40 — forked from qti3e/README.md
List of file signatures and mime types based on file extensions
@lihongjie0209
lihongjie0209 / gist:cc76db81c6eabd8b48a250eb9bcbe7b8
Last active September 11, 2022 14:41 — forked from tripurari001/gist:e78aa7b33a1f9f000405309a8082982a
Openwest 2015 - Erik Falor - From Vim Muggle to Wizard in 10 Easy Steps
_
- - /, /, |\ 222222222222222
)/ )/ ) ' _ \\ 2:::::::::::::::22
)__)__) \\ /\\ < \, ,._-_ / \\ _-_, 2::::::222222:::::2
~)__)__) || / /-|| || || || ||_. 2222222 2:::::2
) ) ) || /\\ (( || || || || ~ || 2:::::2
/-_/-_/ \\ || \/\\ \\, \\/ ,-_- 2:::::2 ::::::
/ 2222::::2 ::::::
(, 22222::::::22 ::::::
.--.--.-----. 22::::::::222
/**
* 百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换的工具
*
* 参考 https://github.com/wandergis/coordtransform 实现的Java版本
* @author geosmart
*/
public class CoordinateTransformUtil {
static double x_pi = 3.14159265358979324 * 3000.0 / 180.0;
// π
static double pi = 3.1415926535897932384626;