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)
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)
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)