<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br><br>I noticed that you have many resolutions in tilecache.cfg for only 5 levels...<br>&nbsp;<br>
Francisco Domingues<br><br><br><br><br>&gt; Date: Thu, 15 Oct 2009 01:58:58 -0700<br>&gt; From: rahn@zhaw.ch<br>&gt; To: tilecache@openlayers.org<br>&gt; Subject: [Tilecache]  TileCache only results in white images<br>&gt; <br>&gt; <br>&gt; hello list,<br>&gt; <br>&gt; I'm new in using TileCache with OpenLayers. Perhaps you can help me.<br>&gt; <br>&gt; I try to make Tiles for different Layers. First I have some Polygons with<br>&gt; region-borders. After this I have some background data like streets for<br>&gt; example.<br>&gt; <br>&gt; In my OpenLayers file I use the follwing code:<br>&gt; <br>&gt; var url = "http://webgis.hsw.ch/GINES/Styling/mysld_bezirke.php?";<br>&gt; <br>&gt; var urlFusion = "http://webgis.hsw.ch/GINES/Styling/mysld_fusion.php?";<br>&gt; <br>&gt; var urlArray = ["http://webgis.hsw.ch/cgi-bin/mapserv.exe?",<br>&gt; "http://195.176.253.211/cgi-bin/mapserv.exe?"];<br>&gt; <br>&gt; var urlArrayTC = ["http://webgis.hsw.ch/cgi-bin/tilecache/tilecache.cgi?"];<br>&gt; <br>&gt; var mapFile = "../htdocs/GINES/Maps/Gemeinden_Bern.map";<br>&gt; <br>&gt;  <br>&gt; <br>&gt; var options1 = {<br>&gt; <br>&gt;             maxExtent: new OpenLayers.Bounds(555100,129900,678450,245000),<br>&gt; <br>&gt;             maxScale: '500',<br>&gt; <br>&gt;             minScale: '458262',<br>&gt; <br>&gt;             resolutions:[481.8359375, 240.91796875, 120.458984375,<br>&gt; 60.2294921875, 30.11474609375, 15.057373046875, 7.5286865234375,<br>&gt; 3.76434326171875, 1.882171630859375, 0.9410858154296875,<br>&gt; 0.47054290771484375, 0.23527145385742188, 0.11763572692871094,<br>&gt; 0.058817863464355469, 0.029408931732177734, 0.014704465866088867,<br>&gt; 0.0073522329330444336, 0.0036761164665222168, 0.0018380582332611084,<br>&gt; 0.0009190291166305542],<br>&gt; <br>&gt;             maxresolution:481.8359375,<br>&gt; <br>&gt;             minresolution:0.0009190291166305542,<br>&gt; <br>&gt;             units: 'm',<br>&gt; <br>&gt;             projection: "EPSG:21781",<br>&gt; <br>&gt;             controls: []<br>&gt; <br>&gt; };<br>&gt; <br>&gt;  <br>&gt; <br>&gt; var map = new OpenLayers.Map('map',options1);<br>&gt; <br>&gt;  <br>&gt; <br>&gt; var wms = new OpenLayers.Layer.WMS("Gemeinden",urlArrayTC,<br>&gt; {map:mapFile,layers:layerName,format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"}<br>&gt; );<br>&gt; <br>&gt;  <br>&gt; <br>&gt; var<br>&gt; sld_string=url+"jahr="+jahr+"&amp;indikator="+indikator1+"&amp;klassen="+klassen+"&amp;vis="+vis+"&amp;fusion="+jahr4+"&amp;farbe="+farbe;<br>&gt; <br>&gt;  <br>&gt; <br>&gt; wms.mergeNewParams({ SLD:sld_string});<br>&gt; <br>&gt;  <br>&gt; You can see that i'm using an skript which generates an sld file. This file<br>&gt; works with the mergeNewParams Parameter.<br>&gt; <br>&gt; I get the data out of a postgreSQL database.<br>&gt; <br>&gt; In my tilecache.cfg file I have this code:<br>&gt; <br>&gt; [gemeinden_2008]<br>&gt; <br>&gt; type=WMS<br>&gt; <br>&gt; url=http://webgis.hsw.ch/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>&gt; <br>&gt; #mapfile=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>&gt; <br>&gt; layers=gemeinden_2008<br>&gt; <br>&gt; maxresolution=481.8359375<br>&gt; <br>&gt; minresolution=0.0009190291166305542<br>&gt; <br>&gt; resolutions=481.8359375, 240.91796875, 120.458984375, 60.2294921875,<br>&gt; 30.11474609375, 15.057373046875, 7.5286865234375, 3.76434326171875,<br>&gt; 1.882171630859375, 0.9410858154296875, 0.47054290771484375,<br>&gt; 0.23527145385742188, 0.11763572692871094, 0.058817863464355469,<br>&gt; 0.029408931732177734, 0.014704465866088867, 0.0073522329330444336,<br>&gt; 0.0036761164665222168, 0.0018380582332611084, 0.0009190291166305542<br>&gt; <br>&gt; levels=5<br>&gt; <br>&gt; extension=png<br>&gt; <br>&gt; extent_type=loose<br>&gt; <br>&gt; srs=EPSG:21781<br>&gt; <br>&gt; bbox=555100,129900,678450,245000<br>&gt; <br>&gt; metaTile=true<br>&gt; <br>&gt; ----------------------------------------------<br>&gt; <br>&gt; [seen]<br>&gt; type=WMS<br>&gt; url=http://webgis.hsw.ch/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>&gt; #mapfile=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>&gt; layers=seen<br>&gt; extension=png<br>&gt; transparency=true<br>&gt; extent_type=loose<br>&gt; srs=EPSG:21781<br>&gt; bbox=555100,129900,678450,245000<br>&gt; <br>&gt; --------------------------------------------<br>&gt; <br>&gt; And now I have a problem.<br>&gt; For the Layer "seen" all works fine I get the Tiles and all is ok. In my<br>&gt; TielCache Directory I have the different png files.<br>&gt; <br>&gt; But with the Layer "gemeinden_2008" it doesn't work. I only get white<br>&gt; images. On the Server in the TielCache Directory I have different white<br>&gt; images without the map-data.<br>&gt; <br>&gt; I don't know where what I have to do to correct the error. Perhaps somebody<br>&gt; can help me.<br>&gt; <br>&gt; I use OpenLayers 2.8 with UMN Mapserver and PostgreSQL database.<br>&gt; <br>&gt; Thank you very much for your help.<br>&gt; <br>&gt; Greetings<br>&gt; Hanno Rahn<br>&gt; <br>&gt; -- <br>&gt; View this message in context: http://n2.nabble.com/TileCache-only-results-in-white-images-tp3828062p3828062.html<br>&gt; Sent from the TileCache mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; Tilecache mailing list<br>&gt; Tilecache@openlayers.org<br>&gt; http://openlayers.org/mailman/listinfo/tilecache<br>                                               <br /><hr />Novo Internet Explorer 8: traduza com apenas um clique.  <a href='http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8' target='_new'>Baixe agora, é grátis!</a></body>
</html>