<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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 class="moz-txt-link-freetext" href="http:/localhost/cgi-bin/tilecache/tilecache.py">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 class="moz-txt-link-freetext" href="http://?map=world_test.map">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 class="moz-txt-link-freetext" 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">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>
</body>
</html>