[Gdal-dev] gdal 1.4.3: warning with postgis importer when in append mode

Frank Warmerdam warmerdam at pobox.com
Thu Nov 1 13:52:41 EDT 2007


Andreas Neumann wrote:
> Hello,
> 
> I upgraded from gdal 1.4.2 to gdal 1.4.3
> 
> Since the upgrade, I get the following warnings I don't understand:
> 
> Warning 1: Unable to detect single-column primary key for
> 'Gebaeudeadressen__Strassenstueck'. Use default 'ogc_fid'
> 
> along for tons of other warnings for every other spatial table in the schema.
> 
> I get this warning when using the following command:
> 
> ogr2ogr -a_srs "EPSG:21781" -append -update -nln
> av.Gebaeudeadressen__Strassenstueck -lco SCHEMA=av -lco DIM=2 -lco
> LAUNDER=yes -lco GEOMETRY_NAME=the_geom -f "PostgreSQL" PG:"dbname=mydb
> user=myuser password=mypw host=localhost" 198-uster-gds.itf,dm01avzh24.ili
> Gebaeudeadressen__Strassenstueck
> 
> When looking at the table definition, I have a single-column primary key
> called 'ogc_fid', which was generated by gdal itself. So whats wrong with
> this primary key that ogr2ogr is complaining?

Andreas,

The warning is an unintended side effect of the fix for #1889.  I'll
reopen this as a priority fix for 1.4.4.  In the meantime, you can ignore
these particular warnings.

   http://trac.osgeo.org/gdal/ticket/1889

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the gdal-dev mailing list