@supjt/gstool

0.2.4 • Public • Published

安装

npm i -g @supjt/gstool

额外的依赖

如果使用某些需要使用 GDAL 的功能, 需要额外安装一个工具包.

pip3 install gdal-utils

功能说明

下载瓦片自动拼接

gstool fetch-tile \
--tpl=http://SOME-HOST/PATH-TO-ASSET/\{z\}/\{x\}/\{y\}.png \
--out ~/Desktop/PATH-TO-SAVE \
--tbox=6257,3400,6259,3401 \
--zoom=13 \
--scales=2

转换 Mapbox RGB Terrain 为一般风格的 GeoTiff

gstool cvt-mbt2gray -i 'mbt.tif' -o 'gtif.tif'

批量转换瓦片格式

gstool cvt-fmtimg -i ./SOMT_DIR_INPUT -o ./SOME_DIR_OUTPUT

Readme

Keywords

none

Package Sidebar

Install

npm i @supjt/gstool

Weekly Downloads

0

Version

0.2.4

License

ISC

Unpacked Size

111 kB

Total Files

17

Last publish

Collaborators

  • budblack