Skip to main content

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.1.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gcj_rectify-0.2.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file gcj_rectify-0.2.1.tar.gz.

File metadata

  • Download URL: gcj_rectify-0.2.1.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for gcj_rectify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0a81d6028d81b372e76ff943c8494e830ef0c0c0624a35a1a87fc3ba38489260
MD5 f0306230c4d3b89fc88d1c57bf9057f0
BLAKE2b-256 b7433e97be370cb5900cabf360d6fc70ad1045cab0d7e4999a9f6c4a1181b8fb

See more details on using hashes here.

File details

Details for the file gcj_rectify-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gcj_rectify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 495f2b2c074aa60ffb06ebed4cdb49a62be6ba903b327cb12940b5e649539594
MD5 ffa24e6adc8ae369256bc0131182060e
BLAKE2b-256 51ae0908a73142458f89ae4e9b0291781fbaa8535d71a4c56e3ecabc91869b96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page