John. Great glad that worked.

You only need to send transparent=true if you want a transparent background. Likely the only reason you would want this is if you were not using the coastlines shapefiles and wanting to overlay osm features on top of something like aerial imagery.

Dane

--- \o/ ---
Sent from my phone

On Nov 7, 2009, at 10:59 AM, John Mitchell <[email protected]> wrote:

Thanks Dane,

That worked great!.

My open street map layer is my bottom/base layer so I don't need to worry about transparency so is their any benefit in me adding TRANSPARENT=<bool> to the query string?

John

On Sat, Nov 7, 2009 at 11:25 AM, Dane Springmeyer <[email protected]> wrote: 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




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

Reply via email to