mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[GDALTools] pass output format to gdal_contour (fix #6695)
This commit is contained in:
parent
7eacd444d0
commit
803cbada13
@ -47,6 +47,8 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
||||
|
||||
self.outSelector.setType(self.outSelector.FILE)
|
||||
|
||||
self.outputFormat = Utils.fillVectorOutputFormat()
|
||||
|
||||
# set the default QSpinBoxes value
|
||||
self.intervalDSpinBox.setValue(10.0)
|
||||
|
||||
@ -85,6 +87,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
||||
if not self.useDirAsOutput:
|
||||
Utils.FileFilter.setLastUsedVectorFilter(lastUsedFilter)
|
||||
|
||||
self.outputFormat = Utils.fillVectorOutputFormat(lastUsedFilter, outputFile)
|
||||
self.outSelector.setFilename(outputFile)
|
||||
self.lastEncoding = encoding
|
||||
|
||||
@ -96,8 +99,15 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
||||
if True: # XXX in this moment the -i argument is not optional
|
||||
arguments.append("-i")
|
||||
arguments.append(unicode(self.intervalDSpinBox.value()))
|
||||
|
||||
outputFn = self.getOutputFileName()
|
||||
if outputFn:
|
||||
arguments.append("-f")
|
||||
arguments.append(self.outputFormat)
|
||||
|
||||
arguments.append(self.getInputFileName())
|
||||
arguments.append(self.outSelector.filename())
|
||||
|
||||
return arguments
|
||||
|
||||
def getInputFileName(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user