Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4882 closed defect (fixed)

Problem reading GlobalID field with FileGDB driver

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

Description (last modified by silyko)

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 can be found at:

ftp.kms.dk , login: soe1 , passwd: 79JA5h

in the folder GDAL.

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 """

Attachments (1)

Gdb_struktur.png (264.8 KB ) - added by silyko 11 years ago.
Structure of databse

Download all attachments as: .zip

Change History (4)

by silyko, 11 years ago

Attachment: Gdb_struktur.png added

Structure of databse

comment:1 by silyko, 11 years ago

Description: modified (diff)

Link to ftp-server inserted in deescription.

comment:2 by Even Rouault, 11 years ago

Component: defaultOGR_SF
Keywords: GlobalID added
Milestone: 1.9.3
Resolution: fixed
Status: newclosed

Fixed in trunk (r25205) and in branches/1.9 (r25206)

comment:3 by rsadler, 11 years ago

Yep, I'd say consider this closed.

Apologies for the doubling up - despite extensive googling [I wasn't so thorough on the trac search].

I'll wait for 1.9.3 when it is bundled with OSGEO4W

Thanks heaps :) Ro

Note: See TracTickets for help on using tickets.