Skip to main content

GCJ Rectify Server

Project description

gcj-rectify

将 GCJ-02(火星坐标系)地图瓦片实时纠正为 WGS-84 坐标系,作为 QGIS 插件使用。

安装

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

直接使用 uvx 运行:

uvx gcj-rectify

缓存

缓存目录

默认缓存目录为 ~/.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
  }
}

QGIS 插件

插件位于 gcj_rectify_plugin 目录,提供图形界面管理服务启停和地图加载。

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.0.tar.gz (41.4 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.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gcj_rectify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 040be1fb78659537c614f6d4256a5b88fbabcc4c03a17c6c4c3e349d1664d9de
MD5 1b26e46db6f271ad1d3092de808f27e6
BLAKE2b-256 10c7e4b9e7c2aa4803a920fbb610946fe11ed8dd3533e745fbdaa9b52423e807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gcj_rectify-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0e76d67be322aaf1bef58135a17e11db5d316fb607abdcc35effe41262751d2
MD5 f646529e15117b97fd2ea87760117e70
BLAKE2b-256 1e4d2e9e0523e6968dad8e3e2c566ffcd45b5a3e8a3642ec52fc5e523a0ca2b2

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