Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to browse for all kinds of vector and raster data using a filebrowsebutton.

The problem is I don't know how to let the browse window see the Esri GRID files (which contains a folder and a bunch of other files in a Windows standard file browser window) as a single file just as the ArcGIS tools see it, so that I can load it in by clicking on it.

I searched through the internet but didn't find any discussion on it. I know how to write code to access a specific GRID file, but not through a file browser.

Can anyone help? Thanks a lot.

Below are my codes about the filebrowsebutton:

wildcard = "Shapefiles (.shp)|*.shp|" \
               "Raster files (GRID, .img, .tif, .bmp, .gif, .jp2, .jpg, .png)|*; *.img; *.tif; *.bmp; *.gif; *.jp2; *.jpg; *.png|" \
               "All files (*.*)|*.*"

    self.fileBrowseButton1 = wx.lib.filebrowsebutton.FileBrowseButton(buttonText='Browse',
          dialogTitle='Choose a file', fileMask= wildcard,
          id=wxID_FRAME1FILEBROWSEBUTTON1, initialValue='',
          labelText=u'Locate the GIS dataset:', parent=self,
          pos=wx.Point(40, 80), size=wx.Size(496, 40), startDirectory=u'.',
          toolTip='Type filename or click browse to choose file')
share|improve this question

closed as too localized by whuber Feb 26 '13 at 15:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

If you know how to access a specific GRID dataset (, then you know that it can be referred to by means of the directory in which all its component datasets reside. – whuber Feb 25 '13 at 14:25