浏览代码

wxGUI: extend import GeoTIFF wildcard to work with double f (merge from trunk, https://trac.osgeo.org/grass/changeset/61986)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62014 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父节点
当前提交
6312315151
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      gui/wxpython/gui_core/gselect.py

+ 3 - 1
gui/wxpython/gui_core/gselect.py

@@ -1353,7 +1353,9 @@ class GdalSelect(wx.Panel):
         # file
         if not ogr:
             extList = rasterFormatExtension
-            fileMask = '%(name)s (*.%(low)s;*.%(up)s)|*.%(low)s;*.%(up)s|' % {'name': 'GeoTIFF', 'low': 'tif', 'up': 'TIF'}
+            fileMask = ('%(name)s (*.%(low1)s;*.%(low2)s;*.%(up1)s;*.%(up2)s)|'
+                        '*.%(low1)s;*.%(low2)s;*.%(up1)s;*.%(up2)s|' %
+                        {'name': 'GeoTIFF', 'low1': 'tif', 'low2': 'tiff', 'up1': 'TIF', 'up2': 'TIFF'})
         else:
             extList = vectorFormatExtension
             fileMask = '%(name)s (*.%(low)s;*.%(up)s)|*.%(low)s;*.%(up)s|' % {'name': 'ESRI Shapefile', 'low': 'shp', 'up': 'SHP'}