Yes, I've always found the background color setting odd with the OGCServer, but I assume that is it simply matching the WMS spec.
To get the standard OSM background color, you need to send the HEX color in the Query string, but replace the '#' with '0x', so something like: BGCOLOR=0xb5d0d0 Also note the additional variable you can send of TRANSPARENT=<bool> Lastly, keep in mind that although the OGGServer is a bit buried in the Mapnik code base, it simply a few python scripts and you should (as others should) feel free to peek inside and provide patches for additional functionality: http://trac.mapnik.org/browser/trunk/bindings/python/mapnik/ogcserver Dane On Nov 7, 2009, at 1:06 AM, John Mitchell wrote: > Hi, > > I have been using the Mapnik OGC server to display open street map > data and it looks identical to tiles that I generated via > generate_tiles.py except that the background instead of the being > blue is white. I noticed in the osm.xml that near the top of the > file it has the below line: > <Map bgcolor="#b5d0d0" srs="+proj=merc +a=6378137 +b=6378137 > +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m > +nadgri...@null +no_defs +over"> > > This sets the background color which is used by generate_tiles.py > but not for a WMS request when LAYERS=__all__. > Also I noticed that the land at world and medium scales are a very > lite pink instead of being white but that may just be the contrast > with the white background instead of the blue background. > > John > > -- > John J. Mitchell > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

