コード例 #1
0
ファイル: mapchete.py プロジェクト: intfrr/mapchete
 def __init__(self, mapchete_file, zoom=None, bounds=None):
     """
     Initialize with a .mapchete file and optional zoom & bound parameters.
     """
     try:
         self.config = get_clean_configuration(
             mapchete_file,
             zoom=zoom,
             bounds=bounds
             )
         base_tile_pyramid = TilePyramid(str(self.config["output_srs"]))
         base_tile_pyramid.set_format(self.config["output_format"])
         self.tile_pyramid = MetaTilePyramid(
             base_tile_pyramid,
             self.config["metatiling"]
         )
         self.format = self.tile_pyramid.format
     except Exception as e:
         raise