[gdal-dev] Re: can not connect top postgis db using GDAL

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Fri Sep 24 08:14:52 EDT 2010


Clay, Bruce <bclay <at> ball.com> writes:


> 
> L:\SupportLibraries\gdal-1.7.1\bin\release>ogrinfo -ro
> PG:"host=<hostname> user=postgres password=<pwd>"
> FAILURE:
> Unable to open datasource `PG:host=<hostname> user=postgres
> password=<pwd>'

You forgot to give dbname.

This works for sure for me from Windows:

orginfo -ro PG:"dbname=postgis host=localhost port=5432 user=username
password=password"

-Jukka Rahkonen-






More information about the gdal-dev mailing list