GCJ Rectify Server
Project description
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
}
}
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
gcj_rectify-0.2.2.tar.gz
(36.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gcj_rectify-0.2.2.tar.gz.
File metadata
- Download URL: gcj_rectify-0.2.2.tar.gz
- Upload date:
- Size: 36.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77273a206b1690af00d1e315b79a167973bf8c6755102862e464e5a9f837c331
|
|
| MD5 |
122a2a1083dbe5518aca28545d02fede
|
|
| BLAKE2b-256 |
d779b4840fa6b721e7c3e6f479e28edf2de20cfaef1cffa1630d2987fa25adef
|
File details
Details for the file gcj_rectify-0.2.2-py3-none-any.whl.
File metadata
- Download URL: gcj_rectify-0.2.2-py3-none-any.whl
- Upload date:
- Size: 25.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7286e7cb247e7cf28c774d8a2fbbc1818fdc9e55e56b9c53263dca2ae66845a5
|
|
| MD5 |
4ffcd8522cd96aa73b83af7187cbaa9c
|
|
| BLAKE2b-256 |
23dc0f1fa4f602190cda544073956aae61f5b9e3d31fa62b31ea0471ef09ed2b
|