(self, iface, connection: dict)
The mbtiles_path can also be an URL in zxy format: z=zoom, x=tile column, y=tile row
        :param iface: 
        :param connection:
The mbtiles_path can also be an URL in zxy format: z=zoom, x=tile column, y=tile row
        :param iface: 
        :param connection:
The mbtiles_path can also be an URL in zxy format : z = zoom x = tile column y = tile row : param iface : : param connection :
def __init__(self, iface, connection: dict):
        """
        The mbtiles_path can also be an URL in zxy format: z=zoom, x=tile column, y=tile row
        :param iface: 
        :param connection:
        """
        QObject.__init__(self)
        if not connection:
            raise RuntimeError("The datasource is required")

        self._connection: dict = connection
        self._source: AbstractSource = self._create_source(connection)
        self._external_source: AbstractSource = self._create_source(connection)

        assure_temp_dirs_exist()
        self.iface = iface
        self.feature_collections_by_layer_name_and_geotype: Dict[Tuple[str, str], dict] = {}
        self.cancel_requested = False
        self._loaded_pois_by_id = {}
        self._clip_tiles_at_tile_bounds: False = None
        self._flush = False
        self._feature_count: int = 0
        self._allowed_sources: List[str] = None
        self._ready_for_next_loading_step.connect(self._continue_loading)
        load_lib()
        self.native_decoding_supported = native_decoding_supported()
        if connection["name"] == "OpenInfraMap.org (default entry with credits)":
            # todo: why is OIM failing with the native decoder?
            self.native_decoding_supported = False
        bits = "32"
        if sys.maxsize > 2 ** 32:
            bits = "64"
        if self.native_decoding_supported:
            info("Native decoding supported!!! ({}, {}bit)", platform.system(), bits)
        else:
            info("Native decoding not supported. ({}, {}bit)", platform.system(), bits)
def __init__ ( self , iface , connection : dict ) : QObject . __init__ ( self ) if not connection : raise RuntimeError ( "The datasource is required" ) self . _connection : dict = connection self . _source : AbstractSource = self . _create_source ( connection ) self . _external_source : AbstractSource = self . _create_source ( connection ) assure_temp_dirs_exist ( ) self . iface = iface self . feature_collections_by_layer_name_and_geotype : Dict [ Tuple [ str , str ] , dict ] = { } self . cancel_requested = False self . _loaded_pois_by_id = { } self . _clip_tiles_at_tile_bounds : False = None self . _flush = False self . _feature_count : int = 0 self . _allowed_sources : List [ str ] = None self . _ready_for_next_loading_step . connect ( self . _continue_loading ) load_lib ( ) self . native_decoding_supported = native_decoding_supported ( ) if connection [ "name" ] == "OpenInfraMap.org (default entry with credits)" : # todo: why is OIM failing with the native decoder? self . native_decoding_supported = False bits = "32" if sys . maxsize > 2 ** 32 : bits = "64" if self . native_decoding_supported : info ( "Native decoding supported!!! ({}, {}bit)" , platform . system ( ) , bits ) else : info ( "Native decoding not supported. ({}, {}bit)" , platform . system ( ) , bits )