[Gdal-dev] orginfo

Christian Wilmes C.Wilmes at gmx.de
Wed May 3 10:22:33 EDT 2006


>Hello,

I need it for using the umn-Mapserver with VirtualSpatialData. I found a
tutorial in the web which is using mySQL. There is written I have to do it
like that:
ogrinfo ODBC:user/pass at DSN table

Best regards
Christian 


--- Ursprüngliche Nachricht ---
> Von: Frank Warmerdam <warmerdam at pobox.com>
> An: Christian Wilmes <C.Wilmes at gmx.de>
> Kopie: gdal-dev at lists.maptools.org
> Betreff: Re: [Gdal-dev] orginfo
> Datum: Wed, 03 May 2006 09:53:45 -0400
> 
> 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
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl



More information about the Gdal-dev mailing list