File tree 1 file changed +10
-0
lines changed
python/plugins/GdalTools/tools
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ def __init__(self, iface):
47
47
48
48
self .outSelector .setType (self .outSelector .FILE )
49
49
50
+ self .outputFormat = Utils .fillVectorOutputFormat ()
51
+
50
52
# set the default QSpinBoxes value
51
53
self .intervalDSpinBox .setValue (10.0 )
52
54
@@ -85,6 +87,7 @@ def fillOutputFileEdit(self):
85
87
if not self .useDirAsOutput :
86
88
Utils .FileFilter .setLastUsedVectorFilter (lastUsedFilter )
87
89
90
+ self .outputFormat = Utils .fillVectorOutputFormat (lastUsedFilter , outputFile )
88
91
self .outSelector .setFilename (outputFile )
89
92
self .lastEncoding = encoding
90
93
@@ -96,8 +99,15 @@ def getArguments(self):
96
99
if True : # XXX in this moment the -i argument is not optional
97
100
arguments .append ("-i" )
98
101
arguments .append (unicode (self .intervalDSpinBox .value ()))
102
+
103
+ outputFn = self .getOutputFileName ()
104
+ if outputFn :
105
+ arguments .append ("-f" )
106
+ arguments .append (self .outputFormat )
107
+
99
108
arguments .append (self .getInputFileName ())
100
109
arguments .append (self .outSelector .filename ())
110
+
101
111
return arguments
102
112
103
113
def getInputFileName (self ):
You can’t perform that action at this time.
0 commit comments