def __init__(self, path, *args): fileInfo = QFileInfo(path) QgsRasterLayer.__init__(self, path, *args) GLayer.__init__(self, baseName=fileInfo.baseName(), name="rLayer<" + fileInfo.baseName() + ">") if not self.isValid(): GPrint(self._name + " failed to load.", "!!") else: GPrint(self._name + " successfully loaded.")
def __init__(self, terraqube_cloud, filename, name, canvas, hiperqube_id): self._terraqube_cloud = terraqube_cloud QgsRasterLayer.__init__(self, filename, name) self._hiperqube_id = hiperqube_id self._signatures = [] self._canvas = canvas