Select to view content in your preferred language

Invalid or out of date

4009
1
05-01-2012 03:57 PM
JohnMillington
New Contributor
Someone gave me a directory of files whose name ends with .gdb, and it contains a bunch of files ending with .gdbindexes, .gdbtable and .gdbtable, plus one file simply named "gdb."  My understanding is that these are an undocumented format, but the "File Geodatabase API" library knows how to make sense of them.

All I want is to somehow get my hands on the latitude/longitude coordinates that are somewhere in this stuff.  If I can just turn them into kml or wkt or just _anything_ even partly human-readable, that will totally make my day, because from there I can convert the data to what I need.

I'm trying to just write a simple dumper that will start off telling me the schema (from the docs it looks like I ought to be able to do that) but I don't even get past this:

 if ((hr = OpenGeodatabase(L"./BERNCO.gdb", geodatabase)) != S_OK)
  {
    wcout << "An error occurred while opening the geodatabase." << endl;
    ErrorInfo::GetErrorDescription(hr, errorText);
  }


outputs

An error occurred while opening the geodatabase.
This release of the GeoDatabase is either invalid or out of date.(-2147220965).


Does this mean I don't really have ARCGIS data files, or maybe they were saved using a newer (or older?) version of ARCGIS than what the library can handle, or what?

..alternatively..

By any chance are there any web services that convert geodatabases into anything else?  There's nothing even remotely secret or proprietary about the data itself; the data in question are public records (voting district maps) that I'm trying to get into a more accessible form.
0 Kudos
1 Reply
VinceAngelo
Esri Esteemed Contributor
The file geodatabase API only works with ArcGIS 10.x file geodatabases.  I doubt the
files you are trying to load are 10.x, but you'll need to check with the data provider.

- V
0 Kudos