gcj-rectify
将 GCJ-02(火星坐标系)地图瓦片实时纠正为 WGS-84 坐标系,提供标准 WMTS 服务。
安装
uv tool install gcj-rectify
或直接运行(无需安装):
uvx gcj-rectify
运行服务
开发模式(热重载):
uv run uvicorn gcj_rectify_server:app --reload
生产模式:
uv run uvicorn gcj_rectify_server:app --host 0.0.0.0 --port 8000
缓存
缓存目录
默认缓存目录为 ~/.cache/gcj-rectify-cache,通过环境变量 GCJRE_CACHE 可自定义:
GCJRE_CACHE=/path/to/cache uvx gcj-rectify
缓存内容
cache.db— GCJ 原始瓦片缓存(SQLite)wgs84_cache.db— 已纠正到 WGS-84 的瓦片缓存(SQLite)maps.json— 地图配置,可编辑此文件来增删地图源
地图配置
编辑缓存目录下的 maps.json 文件来增减地图源,格式如下:
{
"my-map": {
"name": "我的地图",
"url": "https://example.com/tiles/{z}/{x}/{y}.png",
"min_zoom": 3,
"max_zoom": 18
}
}
Metadata
Release files for gcj-rectify 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| gcj_rectify-0.2.2.tar.gz | 36.3 kB | Without provenance | Details for gcj_rectify-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gcj_rectify-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for gcj_rectify-0.2.2-py3-none-any.whl |
Total release size: 61.7 kB
Release files / gcj_rectify-0.2.2.tar.gz
| Download URL | gcj_rectify-0.2.2.tar.gz |
|---|---|
| Size | 36.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77273a206b1690af00d1e315b79a167973bf8c6755102862e464e5a9f837c331
|
|
BLAKE2b-256 checksum How to use checksums |
d779b4840fa6b721e7c3e6f479e28edf2de20cfaef1cffa1630d2987fa25adef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Release files / gcj_rectify-0.2.2-py3-none-any.whl
| Download URL | gcj_rectify-0.2.2-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7286e7cb247e7cf28c774d8a2fbbc1818fdc9e55e56b9c53263dca2ae66845a5
|
|
BLAKE2b-256 checksum How to use checksums |
23dc0f1fa4f602190cda544073956aae61f5b9e3d31fa62b31ea0471ef09ed2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.8
|
Security for gcj-rectify 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.