当前位置:网站首页>golang 坐标格式 转换 GCJ02ToWGS84
golang 坐标格式 转换 GCJ02ToWGS84
2022-08-04 05:34:00 【_杜竞宁_】
package main
import (
"fmt"
"github.com/suifengtec/gocoord"
)
func main() {
p := gocoord.Position{
Lon: 111.98497861928867, Lat: 27.180948884922646}
fmt.Println("GCJ02ToWGS84")
p2 := gocoord.GCJ02ToWGS84(p)
fmt.Printf("原始数据:%#v\n", p)
fmt.Printf("转换数据:%#v\n", p2)
fmt.Println(" lng:",p2.Lon, " lat:", p2.Lat)
}
边栏推荐
猜你喜欢
随机推荐
C语言静态变量static的分析
file editor
让src文件夹能读取xml文件
网络通信与Socket编程概述
安全漏洞是如何被发现的?
第九篇 ApplicationContext初始化
对渗透测试工程师来说,学历重要嘛?
学好网络安全看这篇文章让你少走弯路
Arduino之ESP8266编程学习总结体会
数据库实体类对应daoimpl,基础的增删改查。
硬件描述语言Verilog HDL学习笔记之模块介绍
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
【HIT-SC-LAB2】哈工大2022软件构造 实验2
读取JDBC配置文件
Uos统信系统 本地APT源配置
Unity Day03
LeetCode刷题
关于gopher协议的ssrf攻击
基于Webrtc和Janus的多人视频会议系统开发7 - publish和subscribe声音设备冲突导致对方听不到声音
IP 核之 MMCM/PLL 实验






![虚幻引擎 5 完整指南[2022六月最新课程学习内容]](/img/b3/fe90bca8166108e2e577d5a5e2ea6a.png)


