[Tilecache] Symbol image transparency problem

Jez Walters Jez.Walters at ipl.com
Thu Aug 12 04:42:42 EDT 2010


Joel,


I had a go dabbling with OUTPUTFORMAT too, but so far to no avail.  Anyway, I've just made the changes you recommended, but I'm afraid it doesn't make any difference - my symbol images are still not displayed transparently when I use TileCache.  :-(

Thanks for the suggestion though!


Warm regards,


Jez


From: tilecache-bounces at lists.osgeo.org [mailto:tilecache-bounces at lists.osgeo.org] On Behalf Of Joel Bandibas
Sent: Thursday 12 August 2010 02:04
To: Jez Walters; 'Jeff Konnen'
Cc: tilecache at openlayers.org
Subject: Re: [Tilecache] Symbol image transparency problem

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<mailto:Jez.Walters at ipl.com>
To: 'Jeff Konnen'<mailto:jk at ubithere.lu>
Cc: 'tilecache at openlayers.org'<mailto:'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<http://tilecache.org/docs/README.html> 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<http://osgeo-org.1803224.n2.nabble.com/file/n5389483/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<http://osgeo-org.1803224.n2.nabble.com/file/n5389483/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<http://osgeo-org.1803224.n2.nabble.com/Symbol-image-transparency-problem-tp5389483p5389483.html>
Sent from the TileCache mailing list archive<http://osgeo-org.1803224.n2.nabble.com/TileCache-f1836434.html> at Nabble.com<http://Nabble.com>.
_______________________________________________
Tilecache mailing list
Tilecache at lists.osgeo.org<mailto: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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20100812/6cdf3249/attachment.html


More information about the Tilecache mailing list