def show(self): """Update GUI elements and show the dialog""" self.clear() # determine which layers are vector and can be time controlled idsToIgnore = set(self.getIdsAlreadyInOutTable()) allVectorIds = set(qgs.getAllLayerIds(lambda x: not qgs.isRaster(x))) unsupportedVectorIds = set(qgs.getAllLayerIds(lambda x: qgs.isWFS(x))) # todo: plugin layers, e.g. from QuickMapServices should also be excluded try: self.populate(allVectorIds - idsToIgnore - unsupportedVectorIds) except Exception, e: warn(e) return
def show(self): idsToIgnore = set(self.get_ids_already_in_out_table()) allRasterIds = set(qgs.getAllLayerIds(lambda x:qgs.isRaster(x))) try: self.populate(allRasterIds - idsToIgnore) except Exception,e: warn(e) return
def show(self): idsToIgnore = set(self.getIdsAlreadyInOutTable()) allRasterIds = set(qgs.getAllLayerIds(lambda x: qgs.isRaster(x))) self.clear() try: self.populate(allRasterIds - idsToIgnore) except Exception, e: warn(e) return
def show(self): self.clear() idsToIgnore = set(self.get_ids_already_in_out_table()) allVectorIds = set(qgs.getAllLayerIds(lambda x: not qgs.isRaster(x))) try: self.populate(allVectorIds - idsToIgnore) except Exception, e: warn(e) return