<div dir="ltr">Hi,<br><br>I'm having a problem with the display of RASTER type layers from my Mapserver WMS. Basically, if I point the tilecache.cfg to a layer that is a vector type (POLYGON or LINE), Tilecache will properly read it, make a tile request, and cache it. However, if I change the layer in the .cfg to point to a RASTER layer, Tilecache doesn't seem to make the request, and no tile is generated. The only way I've found so far to display just the raster data with Tilecache is to call on both a vector and a raster layer at the same time, and set the opacity of the vector to "0".<br>
<br><u>My tilecache.cfg entry looks like this:</u><br>[temp]<br>type=WMS<br>url=<a href="http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/temp2/temp.map" target="_blank">http://10.10.10.143/cgi-bin/mapserv?map=/var/www/mapfiles/temp2/temp.map</a><br>
layers=countries<br>spherical_mercator=true<br>metabuffer=15<br><br><u>My mapfiles look like this:</u><br># temp.map<br>MAP<br> NAME 'temp'<br> PROJECTION<br> "init=epsg:4326"<br> END<br> EXTENT -130.000000 -50.000000 -30.000000 60.000000<br>
SIZE 800 800<br><br># layers to include in map<br> INCLUDE "imagery.map"<br> INCLUDE "countries.map"<br><br># WEB PARAMETERS<br> WEB<br> IMAGEURL "<a href="http://localhost/tmp" target="_blank">http://localhost/tmp</a>"<br>
IMAGEPATH "/var/www/html/tmp"<br> END # end web<br><br># OUTPUT FORMAT SPECIFICATION<br> OUTPUTFORMAT<br> NAME png<br> DRIVER "AGG/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE RGBA<br>
EXTENSION "png"<br> FORMATOPTION "TRANSPARENT=ON"<br> FORMATOPTION "INTERLACE=OFF"<br> TRANSPARENT ON<br> END #end outputformat<br><br><u>- imagery.map:</u><br># imagery.map<br> LAYER<br>
NAME 'imagery'<br> TYPE RASTER<br> STATUS DEFAULT<br> DATA '3k_color.tif'<br> TRANSPARENCY 50<br> PROJECTION<br> "init=epsg:4326"<br> END<br> END<br><br><u>- countries.map:<br>
</u> LAYER<br> NAME 'countries'<br> TYPE POLYGON<br> STATUS DEFAULT<br> PROJECTION<br> "init=epsg:4326"<br> END<br> TRANSPARENCY 0<br><br> METADATA<br> "wms_srs" "EPSG:4326 EPSG:900913"<br>
"wms_name" "countries"<br> "wms_server_version" "1.1.1"<br> "wms_format" "image/png"<br> "wms_onlineresource" "<a href="http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&" target="_blank">http://localhost/cgi-bin/mapserv?map=/var/www/mapfiles/temp/temp.map&</a>"<br>
END<br><br> DATA 'countries_simpl.shp'<br> CLASS<br> STYLE<br> OUTLINECOLOR 255 0 0<br> END<br> END # end class<br> END # end layer<br><br>It seems to me like something about the Mapserver RASTER layer is displeasing to Tilecache, but I'm not sure what. <br>
<br>Has anyone hit this problem, and is there a simple fix for it?<br><br>Thanks,<br><br>Roger<br>--<br><u><br></u>
</div>