Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit 81c3012

Browse files
waissbluthbhavika
authored andcommitted
Support for --tile-resolution in CLI
1 parent f0891ff commit 81c3012

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

untiler/scripts/cli.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ def cli():
2626
@click.option('--scenetemplate', '-s', default="{z}-{x}-{y}-tile.tif", help="Template for output scenetif filenames [default='{z}-{x}-{y}-tile.tif']")
2727
@click.option('--workers', '-w', default=4, help="Number of workers in the processing pool [default=4]")
2828
@click.option('--no-fill', '-x', is_flag=True, help="Don't fill in with lower zooms")
29-
def streamdir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill):
29+
@click.option('--tile-resolution', '-r', default=256, help="Input tiles' size.")
30+
def streamdir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill, tile_resolution):
3031
# with MBTileExtractor(input_dir) as mbtmp:
3132
# print mbtmp.extract()
32-
untiler.stream_dir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill)
33+
untiler.stream_dir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill, tile_resolution)
3334

3435
cli.add_command(streamdir)
3536

0 commit comments

Comments
 (0)