xyconvert
This is a python package for converting xy coordinates (in lng,lat order) in numpy array between WGS-84, GCJ-02 and BD-09 system.
The conversion in numpy is much more efficient (50-70 times speedup) compared with previous Python implementations such as eviltransform and coordTransform_py that convert only a single point at each call.
Install the package
pip install xyconvert
Usage
from xyconvert import gcj2wgs
import numpy as np
gcj_xy = np.asarray([[104.07008157, 30.73199687],
[104.07008159, 30.73177709],
[104.06999188, 30.73147758]])
wgs_xy = gcj2wgs(gcj_xy)
print wgs_xy
'''
[[104.06756309 30.73437796]
[104.06756312 30.73415829]
[104.06747357 30.73385904]]
'''
Reference
The code is partly copied/modified from https://github.com/Argons/nextlocation and https://github.com/wandergis/coordTransform_py.
Metadata
Release files for xyconvert 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xyconvert-0.1.2.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xyconvert-0.1.2-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 5.8 kB
Release files / xyconvert-0.1.2.tar.gz
| Download URL | xyconvert-0.1.2.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e702e1b7c5d45a0386e73f04daca26279aeba18f7bf52672da71e7cd2f9ee286
|
|
BLAKE2b-256 checksum How to use checksums |
72f76981bd933988798fb7cfd8e67617f9e4212f5010558058cf571ded56ab80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15
|
Release files / xyconvert-0.1.2-py2-none-any.whl
| Download URL | xyconvert-0.1.2-py2-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ad0d828efcd82e6037eeefd18d5f1417a420c1ed5c4246b968191c1d3f9aaa4f
|
|
BLAKE2b-256 checksum How to use checksums |
bb3aa6d2283755903166be4207f43e660b829fa160fa358f36197a0e5e8d6929
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/2.7.15
|