跳转到主要内容

将图像瓦片组合成复合TIF

项目描述

Build Status Coverage Status

一个将{z}/{x}/{y}.(jpg|png)瓦片目录组合成场景tif(具有精确的merc瓦片边界)的工具。未来版本将支持从tar存档中直接快速索引读取。

安装

创建虚拟环境并激活,然后

pip install untiler

开发安装

git clone git@github.com:mapbox/untiler.git

cd untiler

pip install -e .

用法

Usage: untiler [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  inspectdir
  streamdir
  streammbtiles

streamdir

给定一个瓦片目录和一个读取模板,在较低的父级“复合”缩放范围内将瓦片组合成tif

untiler streamdir [OPTIONS] INPUT_DIR OUTPUT_DIR

-c, --compositezoom INTEGER  Tile size to mosaic into [default=13]
-z, --maxzoom INTEGER        Force a maxzom [default=max in each
                           compositezoom area]
-l, --logdir TEXT            Location for log files [default=None]
-t, --readtemplate TEXT      File path template
                           [default='jpg/{z}/{x}/{y}.jpg']
-s, --scenetemplate TEXT     Template for output scenetif filenames
                           [default='{z}-{x}-{y}-tile.tif']
-w, --workers INTEGER        Number of workers in the processing pool
                           [default=4]
-x, --no-fill                Don't fill in with lower zooms
--help                       Show this message and exit.

streammbtiles

将mbtiles组合成“复合”缩放范围的tif

untiler streammbtiles [OPTIONS] MBTILES OUTPUT_DIR

Options:
  --co NAME=VALUE              Driver specific creation options.See the
                               documentation for the selected output driver
                               for more information.
  -c, --compositezoom INTEGER  Tile size to mosaic into [default=13]
  -z, --maxzoom INTEGER        Force a maxzom [default=max in each
                               compositezoom area]
  -s, --scenetemplate TEXT     Template for output scenetif filenames
                               [default='{z}-{x}-{y}-tile.tif']
  -w, --workers INTEGER        Number of workers in the processing pool
                               [default=4]
  -x, --no-fill                Don't fill in with lower zooms
  --help                       Show this message and exit.

inspectdir

流式传输目录的[x, y, z]

untiler inspectdir [OPTIONS] INPUT_DIR

Options:
-z, --zoom INTEGER  Zoom to inspect [default = all]
--help              Show this message and exit.

输出以行为分隔的瓦片[x, y, z]流;这对于将数据管道到mercantile shapes以可视化几何形状很有用

untiler inspectdir <dir> -z 19 | mercantile shapes | fio collect | geojsonio

项目详情


下载文件

下载适用于您平台文件的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

untiler-0.2.1.tar.gz (8.6 kB 查看哈希)

上传于 源码

构建分发

untiler-0.2.1-py2.py3-none-any.whl (10.8 kB 查看哈希值)

上传于 Python 2 Python 3

由以下提供支持