china mars coordinate convertor.
Project description
# China Coordinate Convertor
[中国火星坐标](https://en.wikipedia.org/wiki/Restrictions_on_geographic_data_in_China)转换命令行工具,用于`WGS-84`(未偏移坐标), `GCJ-02`(国家测绘局、高德、谷歌中国地图), `BD-09`(百度坐标系)三者之间的互相转换,支持文件格式:
- ESRI Shapefile
- GeoJSON
<img src="./examples/assets/all.jpg" width = "100%" height = "100%" alt="图片名称" align=center />
## install
推荐使用:
`pip install coord-convert`
或者也可以从源码安装:
```
git clone https://github.com/sshuair/coord-convert.git
pip install -r requirements.txt
python setup.py install
```
## Dependencies
- python3
- fiona
- tqdm
- click
## 使用方法
```
convert input china coordinate to another.
Arguments:
convert_type {string} -- [coordinate convert type, e.g. wgs2bd]
wgs2gcj : convert WGS-84 to GCJ-02
wgs2bd : convert WGS-84 to DB-09
gcj2wgs : convert GCJ-02 to WGS-84
gcj2bd : convert GCJ-02 to BD-09
bd2wgs : convert BD-09 to WGS-84
bd2gcj : convert BD-09 to GCJ-02
src_path {string} -- [source file path]
dst_path {string} -- [destination file path]
Example:
coord_covert wgs2gcj ./examples/data/polygon/polygon_wgs.shp ~/temp/polygon_gcj.shp
```
[中国火星坐标](https://en.wikipedia.org/wiki/Restrictions_on_geographic_data_in_China)转换命令行工具,用于`WGS-84`(未偏移坐标), `GCJ-02`(国家测绘局、高德、谷歌中国地图), `BD-09`(百度坐标系)三者之间的互相转换,支持文件格式:
- ESRI Shapefile
- GeoJSON
<img src="./examples/assets/all.jpg" width = "100%" height = "100%" alt="图片名称" align=center />
## install
推荐使用:
`pip install coord-convert`
或者也可以从源码安装:
```
git clone https://github.com/sshuair/coord-convert.git
pip install -r requirements.txt
python setup.py install
```
## Dependencies
- python3
- fiona
- tqdm
- click
## 使用方法
```
convert input china coordinate to another.
Arguments:
convert_type {string} -- [coordinate convert type, e.g. wgs2bd]
wgs2gcj : convert WGS-84 to GCJ-02
wgs2bd : convert WGS-84 to DB-09
gcj2wgs : convert GCJ-02 to WGS-84
gcj2bd : convert GCJ-02 to BD-09
bd2wgs : convert BD-09 to WGS-84
bd2gcj : convert BD-09 to GCJ-02
src_path {string} -- [source file path]
dst_path {string} -- [destination file path]
Example:
coord_covert wgs2gcj ./examples/data/polygon/polygon_wgs.shp ~/temp/polygon_gcj.shp
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coord-convert-0.1.1.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for coord_convert-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3df91f31603b1e4def315202e32b259025f3123b3bcae65f41cdf103c5fc679e |
|
MD5 | bb7bc8d0fce96a863f04fbf8f77dda73 |
|
BLAKE2b-256 | e6b9babb0b978d928cbbd9e1e98f9efd2d7a50049ea0312fbe3bf3cee4d7a4a2 |