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()
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()