On Dec 1, 2009, at 10:04 PM, Tom Brennan wrote: > On Wed, December 2, 2009 5:38 am, Dane Springmeyer wrote: >>> <Parameter name="host">localhost</Parameter> >>> <Parameter name="port">5432</Parameter> >> Maybe try leaving "host" blank or both "host" and "port" blank (or >> removing those lines altogether)? > > I removed all the host and port parameters, but still get the same > failure > to connect. >
Odd. How again are you trying to accept the xml mapfile? What process is trying to read it. generate_image.py? Maybe try with nik2img.py? Nik2img.py has both a --dry-run mode and a --xml flag to output the XML after it has been run through Mapnik, that might give more clues. I rarely run anything on windows so I'm sorry I don't have more ideas. >> Another way to play around with connecting via mapnik is to try a >> python interpreter: >> >> $ python >>>>> from mapnik import PostGIS >>>>> PostGIS(dbname='gis',table='planet_osm_line') > > Tried this - got the following output. >>>> from mapnik import PostGIS >>>> PostGIS(dbname='gis',table='planet_osm_line') > <mapnik.Datasource object at 0x0057F230> > > Does this indicate a connection, an error, or something else? Yes, that indicates a correct connection and says to be that there is still some different in the way the XML is being understood. What happens if you put only: <Parameter name="dbname">gis</Parameter> <Parameter name="table">planet_osm_line</Parameter> ... in your XML? Maybe sure to test on a small subset (one layer) so you can be sure that Mapnik is not erroring on a different XML layer record which you have not fixed up. Dane _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

