def processAlgorithm(self, progress): gpfXml = self.toXml(forExecution=True) loglines = [] loglines.append("GPF Graph") for line in gpfXml.splitlines(): loglines.append(line) ProcessingLog.addToLog(ProcessingLog.LOG_INFO, loglines) GPFUtils.executeGpf( GPFUtils.getKeyFromProviderName(self.provider.getName()), gpfXml, progress)
def __init__(self, gpfAlgorithmProvider): self.name = self.tr('GpfModel', 'GpfModelerAlgorithm') # The dialog where this model is being edited self.modelerdialog = None self.descriptionFile = None self.helpContent = {} # Geoalgorithms in this model. A dict of Algorithm objects, with names as keys self.algs = {} #Input parameters. A dict of Input objects, with names as keys self.inputs = {} # NOTE: # This doesn't seem used so remove it later from BEAMParmetersPanel and S1TbxAlgorithm self.multipleRasterInput = False GeoAlgorithm.__init__(self) self.provider = gpfAlgorithmProvider self.programKey = GPFUtils.getKeyFromProviderName( self.provider.getName())