瓦片系统的墨卡托坐标操作
项目描述
WebMercator是一个Python(2.7,3.4,3.5,3.6,3.7)包,用于帮助在瓦片系统中将地理点转换为墨卡托投影。
入门指南
先决条件
要使用或为Webmercator做出贡献,您只需要Python!
安装
对于最新版本
# keeping the repo local
$ git clone git@github.com:republicwireless-open/webmercator
$ cd webmercator
$ python setup.py install
# only install; no need to clone
$ pip install git+https://github.com/republicwireless-open/webmercator@master
或对于PyPi版本
$ pip install webmercator>=0.1.2
运行测试
测试可以以多种方式运行
# runs all tests, in all environments
$ path/to/tox
# runs all tests, only in Python 2.7
$ path/to/tox -e py27
# runs specific test class, only in Python 3.6
$ path/to/tox -e py36 tests/point.py
# runs specific test class, only in Python 3.6
$ path/to/tox -e py36 tests/point.py:TestPoint
# runs specific test class, only in Python 3.6
$ path/to/tox -e py36 tests/point.py:TestPoint.test_init_empty
# only runs style guide tests
$ path/to/tox -e flake8
贡献
请阅读CONTRIBUTING.md以了解我们的行为准则和向我们提交拉取请求的流程。
版本控制
许可证
此项目受MIT许可证许可
致谢
Bing Maps Tile System - 使用的墨卡托计算
十进制度 - 精度转换
缩放级别 - 缩放级别像素/瓦片大小
项目详情
关闭
webmercator-0.1.4.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0dcd8f84aea0d9f26712ccc668813d6b139ee8b3a1890c95484045b2e64b1ec3 |
|
MD5 | 52c88bd9a2d8f0be96d0d3b5ad877425 |
|
BLAKE2b-256 | d3249de18aad304b64822f887e295d96fb0eea78bb29a1be1c6b0d3332b61a31 |