[Tilecache] 24 bit png
Stuart Eve
stuarteve at gmail.com
Thu Aug 2 12:21:33 EDT 2007
Tim
Adding mode to the url doesnl't work because the WMS server doesn't
interpret it as connected to the FORMAT.
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?
if extension.lower() == 'jpg': extension = 'jpeg' # MIME
if extension.lower() == 'png24': extension = "png; mode=24bit"
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.
Thanks for any help
Stuart
On 8/2/07, Tim Schaub <tschaub at openplans.org> wrote:
>
> Stuart Eve wrote:
> > Dear all
> >
> > I am trying to get my tilecache to produce 24 bit pngs. Is there support
> > for this in the .cfg file? I have had a brief look at the code and it
> > looks like it just grabs self.extension, appends it to 'image/' and
> > sends it through to the WMS server. I therefore tried to hack it into
> > the .cfg file thus:
> >
> > extension="png; mode=24bit"
> >
>
> If I'm not mistaken, you have to use one of the accepted options for
> extension in your config. To always have "mode=24bit" appended to your
> request, you could include it in the layer url (in tilecache.cfg).
>
>
> > but it still seems to be producing non-24bit PNGS.
> >
> > Does anyone have any ideas?
> >
> > Stuart
> > !DSPAM:4033,46b1f1c6101411336712104!
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Tilecache mailing list
> > Tilecache at openlayers.org
> > http://openlayers.org/mailman/listinfo/tilecache
> >
> >
> > !DSPAM:4033,46b1f1c6101411336712104!
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20070802/939488a4/attachment.html
More information about the Tilecache
mailing list