Opened 12 years ago

Last modified 11 years ago

#4882 closed defect

Problem reading GlobalID field with FileGDB driver — at Initial Version

Reported by: silyko Owned by: warmerdam
Priority: normal Milestone: 1.9.3
Component: OGR_SF Version: unspecified
Severity: normal Keywords: FileGDB GlobalID
Cc:

Description

I have been trying to transform some FileGDB databases with OGR and have run into a problem reading a specific field called "GlobalID". The field simply cannot be read by OGR, which emits this warning (and the field is left as NULL):

ERROR 1: Error: Failed to determine string value for column GlobalID (The value type is incompatible with the field type.)

Have run into the problem both programatically using the OGR C-API, the python bindings and also issuing commands like:

ogr2ogr -f SQLITE -dsco SPATIALITE=YES out.sqlite in.gdb layer_name

(Gdal version 1.9.1)

An example database is attached - my colleague who produced it writes:

""" The database called PreNIS.gdb has the standard structure that Esri uses in their 'solutions' including Nautical Solution. This structure is illustrated in the file Gdb_struktur.png

The file-geodata only have data in the feature-layer NaturalFeaturesL. Where you can find 388 rivers from Greenland. The 388 features all have a GUID.

There are nothing confidential in these data, they can be distributed and used freely between the people that needs to use them to improve GDAL. The data must not be sold, nor otherwise used commercially, without further written agreement with the Danish ministry of Environment.

I hope this will serve your purpose.

Best Regards Martin """

Change History (1)

by silyko, 12 years ago

Attachment: Gdb_struktur.png added

Structure of databse

Note: See TracTickets for help on using tickets.