0

There are many posts in different forums about people having trouble reading File GDBs in QGIS 2.2, but no real solutions.

Is there any word on a resolution to this problem?

I am using QGIS 2.2 (installed via the OSGeo4W online installer) on Windows 8.1 64-bit. I can confirm that the gdal-filegdb (version 1.11.0-1) library is installed, as reported by the OSGeo4W setup.

The FileGDB option does not appear at all in the Directory source type list, and if I go and choose the .gdb folder anyway I get an error about it not being a valid data type.

I am not willing to compile QGIS from scratch with the gdal-filegdb library linked -- that might fly on Linux but it is not a practical alternative on Windows, even assuming I did know how to do it.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Frank
  • 83
  • 6

3 Answers3

3

I was having the same problems as Frank, but today finally got it to work. The main change I made was to use the older gdal-filegdb version (1.10.1-2 instead of 1.11.0-1)

I used the OSGEO4W installer to install QGIS - 32 bit installer - osgeo4w-setup-old.exe

Advanced Install

Desktop: QGIS-full (2.2.0-2)

Libs: 1.10.1-2

Now the FileGDB option is there when I Add Vector->Directory and can bring in to the TOC.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
mike
  • 981
  • 11
  • 17
2

Rather than mentioning "many posts in different forums" without providing a link to any of them, I recommend that you choose the one which looks the most promising and then if it does not deliver the outcome you are seeking, you will be in a much better position to write a Question focussed around that.

When I looked just now I found QGIS: Using ESRI’s File Based Geodatabase which seems straightforward, is very recent and uses a configuration (QGIS 2.2, GDAL 1.10, Windows 7) that seems quite similar to yours.

I strongly recommend that you visit that link which has graphics and may get updated but in essence its author (North River Geographic Systems) says:

... assume you have used the OSGEO4W installer to install QGIS. I used the 32 bit installer.

  1. Reopen the installer and select advanced options

  2. Install from the Internet

  3. go through the next 5 “Next” Clicks accepting the default values. I say that and I accepted the default – there is a possibility you don’t.

  4. You will end up on the Osgeo4W Setup – Select Packages menu.

  5. Expand Libs and Select the gdal-filegdb library for installation

  6. Click next and install that version.

  7. Open QGIS 2.2

  8. Add Vector Data. Select Directory as the source type. Select type as ESRI FileGDB. Since a file based geodatabase is a directory – select that file based geodatabase. Click open and add your file based geodatabase feature classes.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
2

I recommend downloading sample File Geodatabases from ESRI. This zipped api has several small feature classes included. If these open correctly in QGIS, you know your data is the problem, not the software.

FileGDB_API_VS2012_1_3.zip (50 megabyte)

http://www.esri.com/apps/products/download/#File_Geodatabase_API_1.3

samples\data\shapes.gdb
cities
cities2
intrstat
intrstat2
multipatch
states
states2
zvalues
zvalues2

klewis
  • 7,475
  • 17
  • 19