[Tilecache] Symbol image transparency problem
Joel Bandibas
joel.bandibas at aist.go.jp
Wed Aug 11 21:04:07 EDT 2010
Jez,
I had similar transparency problem before and solved it with the correct OUTPUTFORMAT setting of the Mapserver map file. YOu did not show your OUTPUTFORMAT setting in your map file but I assume that the IMAGEMODE is RGB. RGB mode does not support transparency (check Mapserver documentation http://mapserver.org/mapfile/outputformat.html) . Yes, it is strange for even with that setting, transparency works in OpenLayers. Anyway, make the following changes and add the following OUTPUTFORMAT setting bellow in your map file and see if it works:
IMAGETYPE PNG
IMAGECOLOR 255 255 255
OUTPUTFORMAT
NAME PNG
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
TRANSPARENT ON
END
Good day.
Joel
GSJ/AIST
----- Original Message -----
From: Jez Walters
To: 'Jeff Konnen'
Cc: 'tilecache at openlayers.org'
Sent: Tuesday, August 10, 2010 6:55 PM
Subject: RE: [Tilecache] Symbol image transparency problem
Jeff,
Thanks for the advice, but how exactly do I do as you suggest? Do I need to set the "extension" parameter, and if so what value should I use - the online documentation doesn't indicate how to use this parameter. I tried adding "extension=png", but that didn't change anything.
Warm regards,
Jez
From: Jeff Konnen [mailto:jk at ubithere.lu]
Sent: Monday 9 August 2010 19:13
To: Jez Walters
Subject: Re: [Tilecache] Symbol image transparency problem
Hi Jez,
if you want transparency using tilecache, be sure to set png and not jpeg in the tilecache config.
Perhaps this might help
Jeff
On 09 Aug 2010, at 17:49, Jez Walters wrote:
Hello TileCachers,
I'm not sure if I posted this question correctly last time, so I'm trying again! ;-)
I'm displaying UK Ordnance Survey MasterMap vector maps using OpenLayers, TileCache and MapServer. The maps display perfectly when I use just MapServer ( MapServer.jpg ), as well as when I also use OpenLayers. However, when I add TileCache to the mix, the various symbol images are no longer transparent ( TileCache.jpg ).
I don't have that much experience of TileCache, so any help/explanation would be most appreciated!
Jez
------------------------------------------------------------------------------
View this message in context: Symbol image transparency problem
Sent from the TileCache mailing list archive at Nabble.com.
_______________________________________________
Tilecache mailing list
Tilecache at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/tilecache
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify the sender immediately and then delete this email.
Any representations or commitments expressed in this email are subject to contract.
This message has been scanned for viruses and dangerous content. However, it is essential that the recipient also checks this message using commercially available mail scanning and anti-virus software. IPL Information Processing Limited accepts no liability for any loss or damage resulting from any virus or other dangerous content in this message.
IPL Information Processing Limited is registered in England and Wales under company registration number 1418818. Registration took place at Cardiff on 10 May 1979. IPL Information Processing Limited's registered office and normal place of business is Eveleigh House, Grove Street, Bath, BA1 5LR, United Kingdom. IPL is also registered for Value Added Tax (VAT) under registration number GB 601 2931 83.
------------------------------------------------------------------------------
_______________________________________________
Tilecache mailing list
Tilecache at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/tilecache
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20100812/ea7ebdc5/attachment-0001.html
More information about the Tilecache
mailing list