[gdal-dev] ogr2ogr 2.0 PG driver problem

michele_zanolli at comune.trento.it michele_zanolli at comune.trento.it
Wed Jul 15 05:10:34 PDT 2015


Ciao Martin,

>
>try -lco 'schema=myschema' option, so
>
>ogr2ogr -f PostgreSQL "PG:host=localhost user=myuser" mylayer -nln
>mylayer -lco 'schema=myschema'
>

Thanks, it works with no errors!
A third way is to use -nln myschema.mylayer, so

ogr2ogr -f PostgreSQL "PG:host=localhost dbname=mydb user=myuser" mylayer -nln myschema.mylayer

IMHO, the error using "schemas=myschema" is non sense, with GDAL 1.x the syntax is accepted and no errors are printed.

michele

>--
>Martin Landa
>http://geo.fsv.cvut.cz/gwiki/Landa
>http://gismentors.cz/mentors/landa


More information about the gdal-dev mailing list