Hi tobias maybe you can try to turn on transparency in your mapfile, try to overwrite the default png driver with this<div><br><div><div>OUTPUTFORMAT</div><div> NAME "png"</div><div> MIMETYPE "image/png"</div>
<div> DRIVER "GD/PNG"</div><div> EXTENSION "png"</div><div> IMAGEMODE RGBA</div><div> TRANSPARENT ON</div><div> FORMATOPTION "INTERLACE=OFF" #for tilecache, metaTile On</div>
<div>END</div><br><div class="gmail_quote">2010/1/20 Tobias Weiß <span dir="ltr"><<a href="mailto:tobias.weiss@pik-potsdam.de">tobias.weiss@pik-potsdam.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
<font face="Tahoma">Hello Tilecachers,<br>
<br>
I am new to this list. I am developing map applications using Google
Maps, OpenlLayers & MapServer. Now I want to improve performance
and installed Tilecache that runs fine under mod_python. I can render
tiles successfully but can´t get them transparent. I have searched
through the list but couldn´t find a solution to my problem. Don´t know
if this maybe derives from the fact that I use type=MapServer instead
of type=WMS in my tilecache.cfg to request a layer. As far as I read
the other posts, getting transparent tiles works by appending
"transparent=true" to the WMS url but this doesn´t seem to work with
type=MapServer. <br>
<br>
Ok, this is my code:<br>
<br>
#######<br>
<br>
JavaScript:<br>
<br>
new
OpenLayers.Layer.WMS("name","<a href="http:/localhost/cgi-bin/tilecache/tilecache.py" target="_blank">http:/localhost/cgi-bin/tilecache/tilecache.py</a>,<br>
{<br>
maxExtent:new
OpenLayers.Bounds(-198,-115.542749339137,198,109.146905833277),<br>
maxResolution:156543.0339,<br>
layers:"worldtest",<br>
format: 'image/png',<br>
transparent:true<br>
});<br>
<br>
#########<br>
<br>
tilecache.cfg<br>
<br>
[worldtest]<br>
layers = country<br>
spherical_mercator = yes<br>
extension = png<br>
mapfile = /mymaps/world_test.map<br>
transparent = true<br>
data_extent = -198.0,-115.542749339,198.0,109.146905833<br>
type = MapServer<br>
metatile = no<br>
srs = EPSG:4326<br>
metabuffer =
10,10 <br>
bbox = -198.0,-115.542749339,198.0,109.146905833<br>
metasize = 5,5<br>
extent_type=loose<br>
<br>
# Some extracts from my world_test.map<br>
<br>
WEB<br>
LOG world_test.log<br>
IMAGEPATH ''<br>
IMAGEURL ''<br>
METADATA<br>
WMS_ONLINERESOURCE '<a href="http://?map=world_test.map" target="_blank">http://?map=world_test.map</a>'<br>
WMS_SRS 'EPSG:4326 EPSG:900313'<br>
WMS_ACCESSCONSTRAINTS 'none'<br>
WMS_TITLE 'WMSTitel'<br>
WMS_FEATURE_INFO_MIME_TYPE 'text/html'<br>
WMS_ABSTRACT 'WMSmetatext'<br>
END #METADATA<br>
<br>
This code is working fine, just transparency is missing. A single tiles
url is e.g the following:<br>
<a href="http://localhost/cgi-bin/tilecache/tilecache.py?MAXEXTENT=left-bottom%3D%28-198%2C-115.542749339137%29%20right-top%3D%28198%2C109.146905833277%29&MAXRESOLUTION=156543.0339&LAYERS=worldtest&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-0.003589194267988205,-0.003589194267988205,10018754.166010806,10018754.166010806&WIDTH=256&HEIGHT=256" target="_blank">http://localhost/cgi-bin/tilecache/tilecache.py?MAXEXTENT=left-bottom%3D%28-198%2C-115.542749339137%29%20right-top%3D%28198%2C109.146905833277%29&MAXRESOLUTION=156543.0339&LAYERS=worldtest&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-0.003589194267988205,-0.003589194267988205,10018754.166010806,100187
54.166010806&WIDTH=256&HEIGHT=256</a><br>
<br>
I read somewhere that </font>MapServer needs to be configured to work
as a Web Map Service (WMS) provider in order to work with Tilecache. I
checked my MapServer and as far as I see it supports WMS.<br>
<br>
I there something wrong in my tilecache.cfg?<br>
<br>
Best, <br>
Tobias<br>
<font face="Tahoma"><br>
<br>
</font>
</div>
<br>_______________________________________________<br>
Tilecache mailing list<br>
<a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br>
<br></blockquote></div><br></div></div>