[Gdal-dev] orginfo

Frank Warmerdam warmerdam at pobox.com
Wed May 3 09:53:45 EDT 2006


Christian Wilmes wrote:
> Hi list,
> 
> I would like to access a PostgreSQL Server.
> 
> I test it with the following command:
> C:\Program Files\FWTools1.0.0b2>ogrinfo
> PostgreSQL\:myUsername/myPassword at PostgreSQL30W feature

...

> So can anybody tell me what is my mistake. I'm a newbie on using ogr and so
> I've got no idea.

Christian,

Your datasource naming is wrong.  I think you want something like:

ogrinfo 'PG:host=PostgreSQL30W user=myUsername pass=myPassword'

Actually, I'm not sure what the right connection keyword for password is.
You may need to look this up in the PQdconnectdb() documentation on the
postgres site.  Also, I normally need a dbname=warmerda to indicate
which database I want to use.

You might want to re-review the PG driver page at:

   http://www.gdal.org/ogr/drv_pg.html

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 OSGF, http://osgeo.org




More information about the Gdal-dev mailing list