Tim<br><br>Adding mode to the url doesnl't work because the WMS server doesn't interpret it as connected to the FORMAT. <br><br>I have added an extra line into my Layer.py to apply when png24 is specified in the cfg file - but seem to be getting my syntax all wrong - perhaps someone with better knowledge of python escape characters can help?
<br><br>if extension.lower() == 'jpg': extension = 'jpeg' # MIME<br>if extension.lower() == 'png24': extension = "png; mode=24bit"<br><br>I keep getting a syntax error on the newline - I have tried escaping out all of the seemingly special characters with a \ but still no dice.
<br><br>Thanks for any help<br><br>Stuart<br><br><div><span class="gmail_quote">On 8/2/07, <b class="gmail_sendername">Tim Schaub</b> <<a href="mailto:tschaub@openplans.org">tschaub@openplans.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Stuart Eve wrote:<br>> Dear all<br>><br>> I am trying to get my tilecache to produce 24 bit pngs. Is there support<br>> for this in the .cfg file? I have had a brief look at the code and it<br>> looks like it just grabs
self.extension, appends it to 'image/' and<br>> sends it through to the WMS server. I therefore tried to hack it into<br>> the .cfg file thus:<br>><br>> extension="png; mode=24bit"<br>><br>
<br>If I'm not mistaken, you have to use one of the accepted options for<br>extension in your config. To always have "mode=24bit" appended to your<br>request, you could include it in the layer url (in tilecache.cfg
).<br><br><br>> but it still seems to be producing non-24bit PNGS.<br>><br>> Does anyone have any ideas?<br>><br>> Stuart<br>> !DSPAM:4033,46b1f1c6101411336712104!<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Tilecache mailing list<br>> <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/tilecache">
http://openlayers.org/mailman/listinfo/tilecache</a><br>><br>><br>> !DSPAM:4033,46b1f1c6101411336712104!<br><br>_______________________________________________<br>Tilecache mailing list<br><a href="mailto:Tilecache@openlayers.org">
Tilecache@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/tilecache">http://openlayers.org/mailman/listinfo/tilecache</a><br></blockquote></div><br>