Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 866 Bytes

README.md

File metadata and controls

41 lines (24 loc) · 866 Bytes

GPX File in China

GPX文件中国大陆偏移处理程序

1. 简介

中国大陆地区使用的坐标系为WGS84,而大部分GPS设备输出的坐标系为GCJ02,这就导致了设备导出GPX文件在大陆有一定的偏移现象,原来是想写GUI的,但是GUI不跨平台,我又懒得写,Swift又反人类,就写Python了。

WGS84

GCJ02

2. 安装

环境:Python 3.6+

安装依赖

  • 使用pipenv

    pipenv install
  • 使用pip

    pip install -r requirements.txt 

3. 使用

python --f 001.gpx --t 001_china.gpx

会读取001.gpx,转换后写入001_china.gpx

4. 鸣谢

虽然在依赖里没有,但本程序使用了scateu/PyWGS84ToGCJ02的部分代码,感谢。