Hi Tom,

Welcome to Mapnik!

On Dec 1, 2009, at 5:00 AM, Tom Brennan wrote:

>       <Parameter name="type">postgis</Parameter>
>       <Parameter name="host">localhost</Parameter>
>       <Parameter name="port">5432</Parameter>
>       <Parameter name="user">brennant</Parameter>
>       <Parameter name="password"></Parameter>
>       <Parameter name="dbname">gis</Parameter>
>       <Parameter name="table">

Maybe try  leaving "host" blank or both "host" and "port" blank (or  
removing those lines altogether)?

Postgres will itself (independent to Mapnik) default to various best  
guess values, which is what osm2pgsql does as well.

Another way to play around with connecting via mapnik is to try a  
python interpreter:

For example, based on my postgres setup this will connect fine:

$ python
 >>> from mapnik import PostGIS
 >>> PostGIS(dbname='gis',table='planet_osm_line')

...the user defaults to my unix user ( I assume the same would happen  
on windows), etc etc.

If that does not work after a few tries, maybe you've got a firewall  
blocking things from connecting on localhost?

Dane


_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to