[gdal-dev] Error using ogr2ogr to import sqlite table into FileGDB

Chaitanya kumar CH chaitanya.ch at gmail.com
Sat Jun 9 00:38:18 PDT 2012


Eric,

I don't think ESRI FileGDB supports layers without a geometry.
Try adding "-nlt NONE" to the ogr2ogr command.

On Fri, Jun 8, 2012 at 10:13 PM, Eric Goddard <egoddard at memphis.edu> wrote:

> Hello everyone,
>
> I'm attempting to import a non-spatial SQLite table into a File
> Geodatabase. I have gdal 1.9.0 compiled with FileGDB support on
> kubuntu 12.04 and it is working correctly. When I use
>
> $ogr2ogr -f "FileGDB" geodatabase.gdb database.db
>
> the command runs but for every record I get the following error:
>
> ERROR 1: Error: Failed at writing Geometry to Row in CreateFeature.
> (An expected Field was not found or could not be retrieved properly.)
>
> In the geodatabase the table shows as an empty table and not a feature
> class. Is there an argument I am missing to make the sqlite table
> import as a table and not a feature class in the FileGDB?
>
> I also tried
> $ogr2ogr -f "FileGDB" geodatabase.gdb database.db myTable -nln newTable
>
> and got the same error.
>
> Thanks,
> Eric
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120609/90d28717/attachment.html>


More information about the gdal-dev mailing list