<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello,<br><br>I have a problem similar to Simon' s one but I cannot really apply the same solution.<br><br>I have a application with some base layers (rasters) and some overlays. <br>In order to make my application work correctly with IE 5.5 and 6 (the transparency problem ...) I have defined 2 types of output :<br>- One called "PNG24" for the raster (24bits needed to have the correct colors, plus transparency for Firefox, transparency for IE is not mandatory for this layer).<br>- One called "PNG" with a 8 bits color index in order to make the transparency work on IE (....).<br><br>OUTPUTFORMAT<br> NAME PNG<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE PC256<br> FORMATOPTION INTERLACE=OFF<br> TRANSPARENT ON<br>END<br><br>OUTPUTFORMAT<br> NAME PNG24<br> DRIVER "GD/PNG"<br> MIMETYPE "image/png"<br> IMAGEMODE RGBA<br> FORMATOPTION INTERLACE=OFF<br> TRANSPARENT ON<br>END<br><br>In the beginning I was only working in 24 bits, the problem is IE. And I can't downgrade the raster layer in 8 bits, it's too ugly.<br><br>I've configured Mapserver (v4) and OpenLayers and everything seems OK. <br>Now if I add Tilecache in between, I loose the "png24" parameter of the URL ... my raster is ugly ^^<br><br>Do you have an idea (even an ugly hack) ? I've tried to add PNG24 as an extension in the configuration of Tilecache but PIL is not happy with it.<br><br>Anyway, thanks to the Tilecache developpers for the good job.<br><br>Tchule.<br><br>(Sorry Christopher for the previous direct mail)<br><br>> Date: Wed, 31 Oct 2007 07:41:08 -0400<br>> To: simon@citysafe.org<br>> From: crschmidt@metacarta.com<br>> CC: ed@citysafe.org; tilecache@openlayers.org<br>> Subject: Re: [Tilecache] agg support<br>> <br>> On Wed, Oct 31, 2007 at 01:03:01AM -0500, Simon Cantem wrote:<br>> > <br>> > -----Original Message-----<br>> > From: Christopher Schmidt [mailto:crschmidt@metacarta.com] <br>> > <br>> > > They should return the same result, but that doesn't neccesarily mean<br>> > > that it's not producing agg. TileCache ignores the format parameter<br>> > (all<br>> > > parameters besides Request, Service, BBOX and layers, actually).<br>> > <br>> > > Watch your Apache logs when your run TileCache with a cleared cache.<br>> > > Open the /cgi-bin/mapserv URL that TC is hitting. View it in a<br>> > browser,<br>> > > and tweak the URL until it looks how you want, then tweak your<br>> > > TIlecache config to match.<br>> > <br>> > > Since TC sends a 'format=image/'+self.extension, it's possible that<br>> > this<br>> > > is overriding your earlier ?format=. I would advise configuring your<br>> > > AGG/PNG24 IMAGEFORMAT to be the only image format with a mimetype of<br>> > > "image/png" as a possible solution. (I think that's what I did.)<br>> > <br>> > <br>> > Yep you're right, there was a second parameter being passed specifying<br>> > image/png, when I copy this URL and remove the offending parameter it<br>> > works fine. I'm not too sure how to make the AGG/PNG24 imageformat the<br>> > only one with a PNG mimetype, I've tried setting the name of the AGG<br>> > output format to image/png but that didn't help. I've tried looking<br>> > through the mapserver reference forcing the output of a particular<br>> > format, but can't find anything on that either. Any pointers on where I<br>> > can look for more info?<br>> <br>> <br>> http://boston.freemap.in/basemap.map is a mapfile I've used with agg.<br>> Note the mimetype "image/png" on the AGG OUTPUTFORMAT . I think<br>> that's what you're looking for. <br>> <br>> Regards,<br>> -- <br>> Christopher Schmidt<br>> MetaCarta<br>> _______________________________________________<br>> Tilecache mailing list<br>> Tilecache@openlayers.org<br>> http://openlayers.org/mailman/listinfo/tilecache<br><br /><hr />Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare! <a href='http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews' target='_new'>Try now!</a></body>
</html>