<div dir="ltr"><div>Hi All,</div><div><br></div><div>I'm having some trouble using ogr2ogr to do batch uploads to a Postgis DB.  It appears that on tables which don't contain geometry, CreateLayer is failing and not allowing data to be appended to an existing table.  Here is the command that is being used to load each feature class:</div><div><br></div><div>ogr2ogr -f "PostgreSQL" -lco ENCODING=UTF-8 -append -update PG:"host=foo dbname=bar user=crak password=head" ./nokia_here_asia/file.gdb CityPOINames</div><div><br></div><div>Below is my logging output.  The first set of data shows the asia data set being loaded, which creates the PostGIS tables. The next set shows what happens with the europe data set.  Although warnings are given for MapAdminArea, MapAdminLink and CityPOI layers, they are sucessfully appended.  However, CityPOINames, MapAreaNames, and MapNameTrans all fail with the CreateLayer error.  Those tables are different in that they lack geometry.</div><div><font face="monospace, monospace">--------</font></div><div><font face="monospace, monospace">Extracting from ./nokia_here_asia/file.gdb</font></div><div><font face="monospace, monospace">Loading MapAdminArea feature_class</font></div><div><font face="monospace, monospace">Loading MapAdminLink feature_class</font></div><div><font face="monospace, monospace">Loading CityPOI feature_class</font></div><div><font face="monospace, monospace">Loading CityPOINames feature_class</font></div><div><font face="monospace, monospace">Loading MapAreaNames feature_class</font></div><div><font face="monospace, monospace">Loading MapNameTrans feature_class</font></div><div><font face="monospace, monospace">--------</font></div><div><font face="monospace, monospace">Extracting from ./nokia_here_europe/file.gdb</font></div><div><font face="monospace, monospace">Loading MapAdminArea feature_class</font></div><div><font face="monospace, monospace">WARNING: Layer creation options ignored since an existing layer is</font></div><div><font face="monospace, monospace">         being appended to.</font></div><div><font face="monospace, monospace">Loading MapAdminLink feature_class</font></div><div><font face="monospace, monospace">WARNING: Layer creation options ignored since an existing layer is</font></div><div><font face="monospace, monospace">         being appended to.</font></div><div><font face="monospace, monospace">Loading CityPOI feature_class</font></div><div><font face="monospace, monospace">WARNING: Layer creation options ignored since an existing layer is</font></div><div><font face="monospace, monospace">         being appended to.</font></div><div><font face="monospace, monospace">Loading CityPOINames feature_class</font></div><div><font face="monospace, monospace">ERROR 1: Layer citypoinames already exists, CreateLayer failed.</font></div><div><font face="monospace, monospace">Use the layer creation option OVERWRITE=YES to replace it.</font></div><div><font face="monospace, monospace">ERROR 1: Terminating translation prematurely after failed</font></div><div><font face="monospace, monospace">translation of layer CityPOINames (use -skipfailures to skip errors)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Loading MapAreaNames feature_class</font></div><div><font face="monospace, monospace">ERROR 1: Layer mapareanames already exists, CreateLayer failed.</font></div><div><font face="monospace, monospace">Use the layer creation option OVERWRITE=YES to replace it.</font></div><div><font face="monospace, monospace">ERROR 1: Terminating translation prematurely after failed</font></div><div><font face="monospace, monospace">translation of layer MapAreaNames (use -skipfailures to skip errors)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Loading MapNameTrans feature_class</font></div><div><font face="monospace, monospace">ERROR 1: Layer mapnametrans already exists, CreateLayer failed.</font></div><div><font face="monospace, monospace">Use the layer creation option OVERWRITE=YES to replace it.</font></div><div><font face="monospace, monospace">ERROR 1: Terminating translation prematurely after failed</font></div><div><font face="monospace, monospace">translation of layer MapNameTrans (use -skipfailures to skip errors)</font></div><div><font face="monospace, monospace">--------</font></div><div><br></div><div>I could create some giant CSV files and load these in one shot, but I'd prefer it if I could handle the entire load using ogr2ogr.  Has anyone else encountered this, or have suggestions for dealing with the problem?</div><div><br></div><div>Thanks,</div><div><br></div><div>Roger</div></div>