[gdal-dev] OGR: How to access Coded Value Domains in File Geodatabases?

Stefan Keller sfkeller at gmail.com
Wed Jan 7 07:20:46 PST 2015

Hi Mike

Thanks! That ticket is very insightful.

I'm not sure though if there is already an agreement there about the
best solution inside OGR code.

In the meantime: Am I correct that there's an immediate solution by
defining an query against table DipCategories of a FileGDB file with
ogr2ogr (-sgl "select ")?


2015-01-07 2:44 GMT+01:00 Mike Toews <mwtoews at gmail.com>:
> Hi Stefan,
> I found this issue too and wrote an enhancement ticket:
> http://trac.osgeo.org/gdal/ticket/5741
> The only workaround appears to be lots of work. The GDB_Items table
> (a00000004.gdbtable) can be read with OGR, where the code/value pairs
> are in attributes of XML code, which can be used to either hash the
> values or do an SQL JOIN.
> -Mike
> On 7 January 2015 at 14:20, Stefan Keller <sfkeller at gmail.com> wrote:
>> Hi,
>> ArcGIS offers "Coded Value Domains" (short: "coded domain") to specify
>> a valid set of values (code+description) for an attribute [1].
>> Any clues on how to access this information using ogr2ogr, i.e. how to
>> export this to a separate table when converting e.g. from a ESRI File
>> Geodatabase (OpenFileGDB, .gdb directories) to Spatialite or
>> GeoPackage?
>> Yours, S.
>> [1] http://resources.arcgis.com/en/help/main/10.1/index.html#//001s00000001000000

More information about the gdal-dev mailing list