mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Merge pull request #2467 from spono/patch-11
[Processing] Update Cover.py
This commit is contained in:
commit
7f3cc35b10
@ -73,6 +73,7 @@ class Cover(FusionAlgorithm):
|
|||||||
commands.append('/ground:' + unicode(ground))
|
commands.append('/ground:' + unicode(ground))
|
||||||
outFile = self.getOutputValue(self.OUTPUT) + '.dtm'
|
outFile = self.getOutputValue(self.OUTPUT) + '.dtm'
|
||||||
commands.append(outFile)
|
commands.append(outFile)
|
||||||
|
commands.append(unicode(self.getParameterValue(self.HEIGHTBREAK)))
|
||||||
commands.append(unicode(self.getParameterValue(self.CELLSIZE)))
|
commands.append(unicode(self.getParameterValue(self.CELLSIZE)))
|
||||||
commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
|
commands.append(self.UNITS[self.getParameterValue(self.XYUNITS)][0])
|
||||||
commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
|
commands.append(self.UNITS[self.getParameterValue(self.ZUNITS)][0])
|
||||||
@ -87,7 +88,7 @@ class Cover(FusionAlgorithm):
|
|||||||
FusionUtils.createFileList(files)
|
FusionUtils.createFileList(files)
|
||||||
commands.append(FusionUtils.tempFileListFilepath())
|
commands.append(FusionUtils.tempFileListFilepath())
|
||||||
FusionUtils.runFusion(commands, progress)
|
FusionUtils.runFusion(commands, progress)
|
||||||
commands = [os.path.join(FusionUtils.FusionPath(), 'DTM2TIF.exe')]
|
commands = [os.path.join(FusionUtils.FusionPath(), 'DTM2ASCII.exe')]
|
||||||
commands.append(outFile)
|
commands.append(outFile)
|
||||||
commands.append(self.getOutputValue(self.OUTPUT))
|
commands.append(self.getOutputValue(self.OUTPUT))
|
||||||
p = subprocess.Popen(commands, shell=True)
|
p = subprocess.Popen(commands, shell=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user