<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>I have the same issue trying to seed the following layer:<br><br>--------------------------------------------------------<br>[global]<br>type=WMS<br>url=http://158.109.174.111:8080/fcgi-bin/wms?map=C:\ms4w\maps\map\wms.map<br>layers=global_mosaic<br>bbox=180000,4600000,400000,4870000<br>srs=EPSG:4326<br>maxResolution=1132.8125<br>extension=jpeg<br>debug=true<br>size=512,512<br>bbox=415000,-200000,7500000,6000000<br>--------------------------------------------------------<br><br>My global layer in mapserver is defined like:<br><br>--------------------------------------------------------<br>LAYER # MODIS WMS map from JPL<br> NAME 'global_mosaic'<br> TYPE RASTER<br> OFFSITE 0 0 0<br> STATUS ON<br> CONNECTIONTYPE WMS<br> CONNECTION "http://onearth.jpl.nasa.gov/wms.cgi?"<br> TOLERANCE 7<br> TOLERANCEUNITS pixels<br> MAXSCALEDENOM 2000000<br><br> METADATA<br> "wms_srs" "EPSG:4326"<br> "wms_name" "global_mosaic"<br> "wms_server_version" "1.1.1"<br> "wms_format" "image/jpeg"<br> END<br><br> PROJECTION<br> "init=epsg:4326"<br> END<br> END # Modis WMS image ends here<br>--------------------------------------------------------<br><br>I get blank tiles...<br>Thanks for any help!<br> <br>
Francisco Domingues<br><br><br><br><br>> Date: Thu, 15 Oct 2009 01:58:58 -0700<br>> From: rahn@zhaw.ch<br>> To: tilecache@openlayers.org<br>> Subject: [Tilecache] TileCache only results in white images<br>> <br>> <br>> hello list,<br>> <br>> I'm new in using TileCache with OpenLayers. Perhaps you can help me.<br>> <br>> I try to make Tiles for different Layers. First I have some Polygons with<br>> region-borders. After this I have some background data like streets for<br>> example.<br>> <br>> In my OpenLayers file I use the follwing code:<br>> <br>> var url = "http://webgis.hsw.ch/GINES/Styling/mysld_bezirke.php?";<br>> <br>> var urlFusion = "http://webgis.hsw.ch/GINES/Styling/mysld_fusion.php?";<br>> <br>> var urlArray = ["http://webgis.hsw.ch/cgi-bin/mapserv.exe?",<br>> "http://195.176.253.211/cgi-bin/mapserv.exe?"];<br>> <br>> var urlArrayTC = ["http://webgis.hsw.ch/cgi-bin/tilecache/tilecache.cgi?"];<br>> <br>> var mapFile = "../htdocs/GINES/Maps/Gemeinden_Bern.map";<br>> <br>> <br>> <br>> var options1 = {<br>> <br>> maxExtent: new OpenLayers.Bounds(555100,129900,678450,245000),<br>> <br>> maxScale: '500',<br>> <br>> minScale: '458262',<br>> <br>> resolutions:[481.8359375, 240.91796875, 120.458984375,<br>> 60.2294921875, 30.11474609375, 15.057373046875, 7.5286865234375,<br>> 3.76434326171875, 1.882171630859375, 0.9410858154296875,<br>> 0.47054290771484375, 0.23527145385742188, 0.11763572692871094,<br>> 0.058817863464355469, 0.029408931732177734, 0.014704465866088867,<br>> 0.0073522329330444336, 0.0036761164665222168, 0.0018380582332611084,<br>> 0.0009190291166305542],<br>> <br>> maxresolution:481.8359375,<br>> <br>> minresolution:0.0009190291166305542,<br>> <br>> units: 'm',<br>> <br>> projection: "EPSG:21781",<br>> <br>> controls: []<br>> <br>> };<br>> <br>> <br>> <br>> var map = new OpenLayers.Map('map',options1);<br>> <br>> <br>> <br>> var wms = new OpenLayers.Layer.WMS("Gemeinden",urlArrayTC,<br>> {map:mapFile,layers:layerName,format:"image/png",EXCEPTIONS:"application/vnd.ogc.se_inimage"}<br>> );<br>> <br>> <br>> <br>> var<br>> sld_string=url+"jahr="+jahr+"&indikator="+indikator1+"&klassen="+klassen+"&vis="+vis+"&fusion="+jahr4+"&farbe="+farbe;<br>> <br>> <br>> <br>> wms.mergeNewParams({ SLD:sld_string});<br>> <br>> <br>> You can see that i'm using an skript which generates an sld file. This file<br>> works with the mergeNewParams Parameter.<br>> <br>> I get the data out of a postgreSQL database.<br>> <br>> In my tilecache.cfg file I have this code:<br>> <br>> [gemeinden_2008]<br>> <br>> type=WMS<br>> <br>> url=http://webgis.hsw.ch/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>> <br>> #mapfile=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>> <br>> layers=gemeinden_2008<br>> <br>> maxresolution=481.8359375<br>> <br>> minresolution=0.0009190291166305542<br>> <br>> resolutions=481.8359375, 240.91796875, 120.458984375, 60.2294921875,<br>> 30.11474609375, 15.057373046875, 7.5286865234375, 3.76434326171875,<br>> 1.882171630859375, 0.9410858154296875, 0.47054290771484375,<br>> 0.23527145385742188, 0.11763572692871094, 0.058817863464355469,<br>> 0.029408931732177734, 0.014704465866088867, 0.0073522329330444336,<br>> 0.0036761164665222168, 0.0018380582332611084, 0.0009190291166305542<br>> <br>> levels=5<br>> <br>> extension=png<br>> <br>> extent_type=loose<br>> <br>> srs=EPSG:21781<br>> <br>> bbox=555100,129900,678450,245000<br>> <br>> metaTile=true<br>> <br>> ----------------------------------------------<br>> <br>> [seen]<br>> type=WMS<br>> url=http://webgis.hsw.ch/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>> #mapfile=C:/ms4w/Apache/htdocs/GINES/Maps/Gemeinden_Bern.map<br>> layers=seen<br>> extension=png<br>> transparency=true<br>> extent_type=loose<br>> srs=EPSG:21781<br>> bbox=555100,129900,678450,245000<br>> <br>> --------------------------------------------<br>> <br>> And now I have a problem.<br>> For the Layer "seen" all works fine I get the Tiles and all is ok. In my<br>> TielCache Directory I have the different png files.<br>> <br>> But with the Layer "gemeinden_2008" it doesn't work. I only get white<br>> images. On the Server in the TielCache Directory I have different white<br>> images without the map-data.<br>> <br>> I don't know where what I have to do to correct the error. Perhaps somebody<br>> can help me.<br>> <br>> I use OpenLayers 2.8 with UMN Mapserver and PostgreSQL database.<br>> <br>> Thank you very much for your help.<br>> <br>> Greetings<br>> Hanno Rahn<br>> <br>> -- <br>> View this message in context: http://n2.nabble.com/TileCache-only-results-in-white-images-tp3828062p3828062.html<br>> Sent from the TileCache mailing list archive at Nabble.com.<br>> _______________________________________________<br>> Tilecache mailing list<br>> Tilecache@openlayers.org<br>> http://openlayers.org/mailman/listinfo/tilecache<br>                                            <br /><hr />Novo Internet Explorer 8: faça tudo com menos cliques. <a href='http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_campaign=IE8' target='_new'>Baixe agora, é gratis!</a></body>
</html>