[MS4W-Users] WMS-C TileCache and transparent - How to do this?

Stephen Woodbridge woodbri at swoodbridge.com
Fri Jun 3 13:49:52 EST 2011


Hi all,

I am running WMS-C TileCache and it works great so far, but I need to 
add a tiled layer that is a transparent overlay but I can not get it to 
to render a transparent image.

Is there a flag in the tilecache.cfg file I need to set?

Here is a test page:
http://imaptools.com:8080/demo/positionlogic-guatemala-900913.html

You can open the Layer Switcher and see the base map and overlay in 
tiles or singleTile mode.

While the above link is on linux, the client is running ms4w. So this is 
probably more a question for Assefa the ms4w in general.

Need some help here - thanks,
   -Steve

[cache]
type=Disk
base=/u/tmp/tilecache

[Guatemala_Streets_900913_WMS]
type=WMS
layers=st
mapfile=/u/data/positionlogic-gt/gt.map
extension=png
bbox=-20037508.34, -20037508.34, 20037508.34, 20037508.34
srs=EPSG:900913
maxresolution=156543.0339
levels=19
size=256,256
metaTile=true
metaSize=4,4



MAP
   NAME "Guatemala_Streets_4326_WMS"
   MAXSIZE 4000
   SIZE 800 800
   SHAPEPATH "/u/data/positionlogic-gt"
   FONTSET "fontset.txt"
   IMAGECOLOR "#80B1D3"
   TRANSPARENT ON
   IMAGETYPE "agg_qn"
   EXTENT -72.012 17.470 -68.321 19.932
   UNITS DD
   #DEBUG 10
   CONFIG MS_ERRORFILE "stderr"
   OUTPUTFORMAT
     NAME "agg_qn"
     DRIVER "AGG/PNG"
     EXTENSION "png"
     MIMETYPE "image/png"
     IMAGEMODE RGBA
     FORMATOPTION "INTERLACE=false"
     FORMATOPTION "QUANTIZE_NEW=ON"
     FORMATOPTION "QUANTIZE_DITHER=OFF"
     FORMATOPTION "QUANTIZE_COLORS=256"
     FORMATOPTION "TRANSPARENT=ON"
     TRANSPARENT ON
   END
   OUTPUTFORMAT
     NAME "agg"
     DRIVER "AGG/PNG"
     EXTENSION "png"
     MIMETYPE "image/png"
     IMAGEMODE RGB
     FORMATOPTION "INTERLACE=false"
   END
   OUTPUTFORMAT
     NAME "agg_a"
     DRIVER "AGG/PNG"
     EXTENSION "png"
     MIMETYPE "image/png"
     IMAGEMODE RGBA
     FORMATOPTION "INTERLACE=false"
   END
   OUTPUTFORMAT
     NAME "agg_q"
     DRIVER "AGG/PNG"
     EXTENSION "png"
     MIMETYPE "image/png"
     IMAGEMODE RGBA
     FORMATOPTION "INTERLACE=false"
     FORMATOPTION "QUANTIZE_FORCE=ON"
     FORMATOPTION "QUANTIZE_DITHER=OFF"
     FORMATOPTION "QUANTIZE_COLORS=256"
   END
   WEB
     METADATA
       labelcache_map_edge_buffer "-10"
       ows_title "Guatemala_Streets_900913_WMS"
       ows_onlineresource 
"http://imaptools.com:8080/cgi-bin/mapserv?map=/u/data/positionlogic-gt/gt.map&"
       ows_srs "EPSG:4326 EPSG:900913"
       ows_feature_info_mime_type "text/html"
     END
   END

...


More information about the MS4W-Users mailing list