Opened 10 years ago

Closed 10 years ago

#5638 closed defect (fixed)

OGR CRS error on EPSG 3005 only file geodatabases

Reported by: snorris Owned by: warmerdam
Priority: normal Milestone: 1.11.1
Component: OGR_SRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

OGR (GDAL v1.11) gives error below when working with a ESRI file geodatabase that contains only EPSG3005 data.

ERROR 6: EPSG PCS/GCS code 102190 not found in EPSG support files. Is this a valid EPSG coordinate system?

Oddly, if a layer with a different projection is added to the same .gdb (the existing layer with EPSG3005 is not altered), the error is not issued.

102190 is apparently the same as 3005, but there is no reference to 102190 in the .gdb files that I can see.

Error is issued with both the ESRI FileGDB driver and the OpenFileGDB driver.

While ogrinfo and ogr2ogr process the data successfully after issuing the error, Fiona bails because of the error: https://github.com/Toblerity/Fiona/issues/141

Example:

$ ogrinfo -al test_bc.gdb | head -50
ERROR 6: EPSG PCS/GCS code 102190 not found in EPSG support files.  Is this a valid
EPSG coordinate system?
Had to open data source read-only.
INFO: Open of `test_bc.gdb'
      using driver `OpenFileGDB' successful.

Layer name: bcgnis_geographic_names_vw
Geometry: Point
Feature Count: 100
Extent: (273735.600700, 367796.340200) - (1869757.529700, 1735095.832600)
Layer SRS WKT:
PROJCS["NAD_1983_BC_Environment_Albers",
    GEOGCS["GCS_North_American_1983",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS_1980",6378137.0,298.257222101]],
        PRIMEM["Greenwich",0.0],
        UNIT["Degree",0.0174532925199433]],
    PROJECTION["Albers_Conic_Equal_Area"],
    PARAMETER["False_Easting",1000000.0],
    PARAMETER["False_Northing",0.0],
    PARAMETER["longitude_of_center",-126.0],
    PARAMETER["Standard_Parallel_1",50.0],
    PARAMETER["Standard_Parallel_2",58.5],
    PARAMETER["latitude_of_center",45.0],
    UNIT["Meter",1.0],
    AUTHORITY["EPSG","3005"]]

Test data available here: https://www.dropbox.com/sh/ekvot9jw0y6nw8w/AAD7Iuuhrm64Stucwv5D4Hxfa?dl=0

Change History (1)

comment:1 by Even Rouault, 10 years ago

Milestone: 1.11.1
Resolution: fixed
Status: newclosed

Internally there was a reference to both 102190 (ESRI code) in 'WKID' field and 3005 (EPSG code) in 'LatestWKID' field

trunk r27653 "FileGDB and OpenFileGDB: use LatestWKID when available (#5638)"

branches/1.11 r27654 branches/1.11 "FileGDB and OpenFileGDB: use LatestWKID when available, and turn importFromEPSG() errors into warning (#5638)"

Note: See TracTickets for help on using tickets.