Install
openclaw skills install @ruiduobao/geoskill-tile-service-generator将栅格按 Web Mercator XYZ 切片方案切分为多缩放级别 PNG 瓦片并生成元数据。Slice a raster into multi-zoom XYZ Web Mercator PNG tiles with tile metadata.
openclaw skills install @ruiduobao/geoskill-tile-service-generatorSlices a raster into a standard XYZ tile service; the output directory {z}/{x}/{y}.png can be loaded directly by Leaflet / OpenLayers / MapLibre:
Multi-zoom levels are generated according to --min-zoom / --max-zoom; the tiles.json metadata records every tile's coordinates and quadkey. --synthetic mode generates a 64×64 gradient raster.
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --min-zoom 6 --max-zoom 8 --output-dir ./tiles
python geoskill-tile-service-generator.py --input dem.tif --min-zoom 8 --max-zoom 11 --output-dir ./dem_tiles
python geoskill-tile-service-generator.py --input ortho.tif --tile-size 128 --min-zoom 10 --max-zoom 12 --output-dir ./t128
python geoskill-tile-service-generator.py --bbox 121.0 31.0 122.0 32.0 --synthetic --min-zoom 7 --max-zoom 7 --output-dir ./z7 --quiet
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --size 128 --max-zoom 9 --output-dir ./hi
| File | Format | Description |
|---|---|---|
tiles/{z}/{x}/{y}.png | PNG (8-bit grayscale) | XYZ tiles |
tiles.json | JSON | Tile listing per zoom level (including quadkey) |
output-manifest.json | JSON | Run manifest |
--input: local GeoTIFF--synthetic: locally generated gradient raster--synthetic mode requires no network at all.MIT
把栅格切分为标准 XYZ 瓦片服务,产物目录 {z}/{x}/{y}.png 可直接被
Leaflet / OpenLayers / MapLibre 加载:
按 --min-zoom/--max-zoom 生成多缩放级别,元数据 tiles.json 记录每块
瓦片坐标与 quadkey。--synthetic 模式生成 64×64 渐变栅格。
pip install numpy rasterio geopandas shapely fiona pyproj
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --min-zoom 6 --max-zoom 8 --output-dir ./tiles
python geoskill-tile-service-generator.py --input dem.tif --min-zoom 8 --max-zoom 11 --output-dir ./dem_tiles
python geoskill-tile-service-generator.py --input ortho.tif --tile-size 128 --min-zoom 10 --max-zoom 12 --output-dir ./t128
python geoskill-tile-service-generator.py --bbox 121.0 31.0 122.0 32.0 --synthetic --min-zoom 7 --max-zoom 7 --output-dir ./z7 --quiet
python geoskill-tile-service-generator.py --bbox 116.0 39.0 117.0 40.0 --synthetic --size 128 --max-zoom 9 --output-dir ./hi
| 文件 | 格式 | 说明 |
|---|---|---|
tiles/{z}/{x}/{y}.png | PNG (8-bit 灰度) | XYZ 瓦片 |
tiles.json | JSON | 各缩放级别瓦片清单(含 quadkey) |
output-manifest.json | JSON | 运行清单 |
--input:本地 GeoTIFF--synthetic:本地生成渐变栅格--synthetic 模式完全无网络。MIT