def processAlgorithm(self, progress): commands = ["gdalinfo"] if self.getParameterValue(information.NOGCP): commands.append("-nogcp") if self.getParameterValue(information.NOMETADATA): commands.append("-nomd") commands.append(self.getParameterValue(information.INPUT)) GdalUtils.runGdal(commands, progress) output = self.getOutputValue(information.OUTPUT) f = open(output, "w") for s in GdalUtils.getConsoleOutput()[1:]: f.write("<p>" + str(s) + "</p>") f.close()
def processAlgorithm(self, progress): arguments = [] if self.getParameterValue(information.NOGCP): arguments.append("-nogcp") if self.getParameterValue(information.NOMETADATA): arguments.append("-nomd") arguments.append(self.getParameterValue(information.INPUT)) GdalUtils.runGdal(["gdalinfo", GdalUtils.escapeAndJoin(arguments)], progress) output = self.getOutputValue(information.OUTPUT) f = open(output, "w") for s in GdalUtils.getConsoleOutput()[1:]: f.write("<p>" + str(s) + "</p>") f.close()
def processAlgorithm(self, progress): arguments = [] if self.getParameterValue(information.NOGCP): arguments.append("-nogcp") if self.getParameterValue(information.NOMETADATA): arguments.append("-nomd") arguments.append(self.getParameterValue(information.INPUT)) GdalUtils.runGdal( ["gdalinfo", GdalUtils.escapeAndJoin(arguments)], progress) output = self.getOutputValue(information.OUTPUT) f = open(output, "w") for s in GdalUtils.getConsoleOutput()[1:]: f.write("<p>" + str(s) + "</p>") f.close()