跳转到主要内容

瓦片系统的墨卡托坐标操作

项目描述

TravisCI CodeCov PyPI MIT-License

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以了解我们的行为准则和向我们提交拉取请求的流程。

版本控制

我们使用SemVer进行版本控制。有关可用的版本,请参阅此存储库的标签

作者

还可以查看参与此项目的贡献者列表

许可证

此项目受MIT许可证许可

致谢

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

webmercator-0.1.4.tar.gz (9.4 kB 查看哈希值)

上传时间 源代码

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面