[gdal-dev] OGR FileGDB driver: Failed at creating table ... (General function failure.)

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Thu Sep 15 07:28:23 EDT 2011


I've run into this. It seems to be that there are only certain projections
that are supported in FileGDB. I tried to convert data in to the Spherical
Mercator projection and none of the projections I used (either epsg, esri
epsg, or esri wkt) would work. I believe that Even R. determined that it
was a limitation of the FileGDB API currently.

A ticket should be filed so that this can be documented.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 9/14/11 8:01 AM, "Hermann Peifer" <peifer at gmx.eu> wrote:

>Hi again,
>
>Once I am at it, I could also report another issue with the FileGDB
>driver.
>
>The driver re-projects my test geodatabase from WGS84 to NAD83 without
>any problems, but when trying to re-project to EPSG:3035 (ETRS89/LAEA
>Europe), I end up with a "General function failure", see more details
>below.
>
>I am not sure what the actual issue is, but a quick Internet search
>suggests that the FileGDB API's "General function failure" might be
>related to problems with understanding the SRS. Maybe OGR's SRS
>definition is not "ESRI-friendly" enough when trying to create the
>geodatabase(?). According to my experience, the classic problem with the
>LAEA projection is the parameter name: "Central_Meridian"(ESRI) versus
>"longitude_of_center" (GDAL/OGR).
>
>Would it be worth filing a ticket?
>
>Hermann
>
>
>
>$ ogrinfo -al -so out.gdb
>INFO: Open of `out.gdb'
>       using driver `FileGDB' successful.
>
>Layer name: eea_1Kgrid
>Geometry: Multi Polygon
>Feature Count: 9
>Extent: (-17.000000, 28.000000) - (-17.000000, 28.000000)
>Layer SRS WKT:
>GEOGCS["WGS 84",
>     DATUM["WGS_1984",
>         SPHEROID["WGS 84",6378137,298.257223563,
>             AUTHORITY["EPSG","7030"]],
>         AUTHORITY["EPSG","6326"]],
>     PRIMEM["Greenwich",0,
>         AUTHORITY["EPSG","8901"]],
>     UNIT["degree",0.0174532925199433,
>         AUTHORITY["EPSG","9122"]],
>     AUTHORITY["EPSG","4326"]]
>FID Column = OBJECTID
>Geometry Column = SHAPE
>CELLCODE: String (0.0)
>Shape_Length: Real (0.0)
>Shape_Area: Real (0.0)
>$
>$
>$ ogr2ogr -f filegdb out_4269.gdb out.gdb -t_srs epsg:4269
>$ ogrinfo -al -so out_4269.gdb
>INFO: Open of `out_4269.gdb'
>       using driver `FileGDB' successful.
>
>Layer name: eea_1Kgrid
>Geometry: Multi Polygon
>Feature Count: 9
>Extent: (-17.000000, 28.000000) - (-17.000000, 28.000000)
>Layer SRS WKT:
>GEOGCS["NAD83",
>     DATUM["North_American_Datum_1983",
>         SPHEROID["GRS 1980",6378137,298.257222101,
>             AUTHORITY["EPSG","7019"]],
>         TOWGS84[0,0,0,0,0,0,0],
>         AUTHORITY["EPSG","6269"]],
>     PRIMEM["Greenwich",0,
>         AUTHORITY["EPSG","8901"]],
>     UNIT["degree",0.0174532925199433,
>         AUTHORITY["EPSG","9122"]],
>     AUTHORITY["EPSG","4269"]]
>FID Column = OBJECTID
>Geometry Column = SHAPE
>CELLCODE: String (0.0)
>Shape_Length: Real (0.0)
>Shape_Area: Real (0.0)
>$
>$ ogr2ogr -f filegdb out_3035.gdb out.gdb -t_srs epsg:3035
>ERROR 1: Error: Failed at creating table for \eea_1Kgrid (General
>function failure.)
>ERROR 1: Terminating translation prematurely after failed
>translation of layer eea_1Kgrid (use -skipfailures to skip errors)
>
>_______________________________________________
>gdal-dev mailing list
>gdal-dev at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list