File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
python/plugins/processing/algs/gdal Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ def getSupportedRasters():
170
170
171
171
GdalUtils .supportedRasters = {}
172
172
GdalUtils .supportedOutputRasters = {}
173
- GdalUtils .supportedRasters ['GTiff' ] = ['tif' ]
174
- GdalUtils .supportedOutputRasters ['GTiff' ] = ['tif' ]
173
+ GdalUtils .supportedRasters ['GTiff' ] = ['tif' , 'tiff' ]
174
+ GdalUtils .supportedOutputRasters ['GTiff' ] = ['tif' , 'tiff' ]
175
175
176
176
for i in range (gdal .GetDriverCount ()):
177
177
driver = gdal .GetDriver (i )
@@ -210,20 +210,24 @@ def getSupportedOutputRasters():
210
210
211
211
@staticmethod
212
212
def getSupportedRasterExtensions ():
213
- allexts = ['tif' ]
213
+ allexts = []
214
214
for exts in list (GdalUtils .getSupportedRasters ().values ()):
215
215
for ext in exts :
216
- if ext not in allexts and ext != '' :
216
+ if ext not in allexts and ext not in [ '' , 'tif' , 'tiff' ] :
217
217
allexts .append (ext )
218
+ allexts .sort ()
219
+ allexts [0 :0 ] = ['tif' , 'tiff' ]
218
220
return allexts
219
221
220
222
@staticmethod
221
223
def getSupportedOutputRasterExtensions ():
222
- allexts = ['tif' ]
224
+ allexts = []
223
225
for exts in list (GdalUtils .getSupportedOutputRasters ().values ()):
224
226
for ext in exts :
225
- if ext not in allexts and ext != '' :
227
+ if ext not in allexts and ext not in [ '' , 'tif' , 'tiff' ] :
226
228
allexts .append (ext )
229
+ allexts .sort ()
230
+ allexts [0 :0 ] = ['tif' , 'tiff' ]
227
231
return allexts
228
232
229
233
@staticmethod
You can’t perform that action at this time.
0 commit comments