Jelajahi Sumber

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 tahun lalu
induk
melakukan
6312315151
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  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'}