예제 #1
0
def streammbtiles(mbtiles, output_dir, compositezoom, maxzoom, creation_options, scenetemplate, workers, no_fill):
    with MBTileExtractor(mbtiles) as mbtmp:
        input_tile_dir = mbtmp.extract()
        with open(os.path.join(input_tile_dir, 'tiles', 'metadata.json')) as ofile:
            metadata = json.loads(ofile.read())
        readtemplate = "tiles/{z}/{x}/{y}.%s" % (metadata['format'])
        untiler.stream_dir(input_tile_dir, output_dir, compositezoom, maxzoom, None, readtemplate, scenetemplate, workers, creation_options, no_fill)
예제 #2
0
파일: cli.py 프로젝트: mapbox/untiler
def streammbtiles(mbtiles, output_dir, compositezoom, maxzoom, creation_options, scenetemplate, workers, no_fill):
    with MBTileExtractor(mbtiles) as mbtmp:
        input_tile_dir = mbtmp.extract()
        with open(os.path.join(input_tile_dir, 'tiles', 'metadata.json')) as ofile:
            metadata = json.loads(ofile.read())
        readtemplate = "tiles/{z}/{x}/{y}.%s" % (metadata['format'])
        untiler.stream_dir(input_tile_dir, output_dir, compositezoom, maxzoom, None, readtemplate, scenetemplate, workers, creation_options, no_fill)
예제 #3
0
def streamdir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill, tile_resolution):
    # with MBTileExtractor(input_dir) as mbtmp:
    #     print mbtmp.extract()
    untiler.stream_dir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill, tile_resolution)
예제 #4
0
파일: cli.py 프로젝트: mapbox/untiler
def streamdir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill):
    # with MBTileExtractor(input_dir) as mbtmp:
    #     print mbtmp.extract()
    untiler.stream_dir(input_dir, output_dir, compositezoom, maxzoom, logdir, readtemplate, scenetemplate, workers, creation_options, no_fill)