[Gdal-dev] Newbie queston concerning ogr2ogr for PostgreSQL

Mateusz Loskot mateusz at loskot.net
Thu Jan 4 09:41:01 EST 2007


Brent Edwards wrote:
> Why won't this work?:
> 
> ogr2ogr -f KML kmltest.kml "PG:dbname=postg is username=postgres
> password=pword" -sql "SELECT * FROM district;"

PostgreSQL driver in OGR recognizes the same connection string format as
used by PostgreSQL API. Here is list of supported keys with explanation
of possible values:

http://www.postgresql.org/docs/8.1/interactive/libpq.html#LIBPQ-CONNECT

Best regards
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list