[Chameleon] Image format of map
Paul Spencer
pspencer at dmsolutions.ca
Fri Apr 29 08:02:14 EDT 2005
can you send me the proposed changes so I can take a look at them?
Paul
Delfos, Jacob wrote:
> Paul,
> A while ago I made a change that allows the image format to change on
> the fly (based on layer-use). It wasn't very hard to do, so it could
> probably be controlled by the user during a session easily.
>
> I think it might be useful to automatically force 24bit colours when a
> full-colour dataset is loaded. This is how I have it set up for our
> sites. By default it uses 8bit gif. It picks up a metadata tag which
> specifies whether to force 24bit jpeg. But perhaps chameleon could
> detect automatically whether a full-colour image is in use.
>
> Maybe the config file could be changed, such that you can set
> "image_type" to "auto", so that it will do that.
> regards,
> Jacob
> JACOB DELFOS
> SPATIAL INFORMATION ANALYST
> Maunsell Australia Pty Ltd
> 629 Newcastle Street, WA 6007
> PO Box 81, WA 6902
> Leederville
> Western Australia
> ABN 20 093 846 925
> Tel + 61 8 9281 6185
> Fax + 61 8 9281 6297
> _jacob.delfos at maunsell.com_ <mailto:jacob.delfos at maunsell.com>
> -----Original Message-----
> From: _chameleon-bounces at lists.maptools.org_
> <mailto:chameleon-bounces at lists.maptools.org>
> [_mailto:chameleon-bounces at lists.maptools.org_] On Behalf Of Paul Spencer
> Sent: Thursday, 28 April 2005 9:57 PM
> To: Bart van den Eijnden
> Cc: _chameleon at lists.maptools.org_ <mailto:chameleon at lists.maptools.org>
> Subject: Re: [Chameleon] Image format of map
> I think we need a way to control this from the application rather than
> only being able to do it through the configuration file. In fact, you
> actually can change it in the index.phtml file but it requires some
> mapscript to do it.
>
> The original reason for having it in the configuration file was because
> we were working only with Web Map Context documents so there was no map
> file to start with ... hence no image format.
>
> I think a reasonable change would be for chameleon to use the map file
> image format and to move this configuration parameter into the cwc2.xml
> file so that it only affects the service instance mode.
>
> Comments and suggestions welcome
> Paul
> Bart van den Eijnden wrote:
> > Hi,
> >
> > did you check the Chameleon config file (chameleon.xml)?
> >
> > <context-param>
> > <param-name>image_type</param-name>
> > <param-value>PNG</param-value>
> > <description>Output image type (eg: PNG, GIF). Must be uppercase.
> This image format MUST be supported by your browser and GD (on the
> server). Please don't change that value unless you know what you'r
> doing.</description>
> > </context-param>
> >
> > The param value normally corresponds with the NAME of an output
> format object from your MAP file which you want to use.
> >
> > Best regards,
> > Bart
> >
> > Bart van den Eijnden
> > Syncera-ITSolutions
> > Postbus 270
> > 2600 AG DELFT
> >
> > tel.nr.: 015-7512436
> > email: _BEN at Syncera-ITSolutions.nl_ <mailto:BEN at Syncera-ITSolutions.nl>
> >
> >
> >>>>Dirk Jesko <_ml.dje at geocontent.de_ <mailto:ml.dje at geocontent.de>>
> 04/28/05 09:52am >>>
> >
> > Hi,
> >
> > Simple question: How do I choose the format for the map image
> > generated by a MapDHTML widget? Even though, my mapfile only specifies
> > jpeg, I always get a 256 color PNG. Somehow, I can not find a way to
> > change this. Since I have layers with true color imagery, 256 colors
> > are insufficient.
> >
> > Thanks,
> > Dirk Jesko
> >
> > _______________________________________________
> > Chameleon mailing list
> > _Chameleon at lists.maptools.org_ <mailto:Chameleon at lists.maptools.org>
> > _http://lists.maptools.org/mailman/listinfo/chameleon_
> >
> >
> > _______________________________________________
> > Chameleon mailing list
> > _Chameleon at lists.maptools.org_ <mailto:Chameleon at lists.maptools.org>
> > _http://lists.maptools.org/mailman/listinfo/chameleon_
> >
> --
> +-----------------------------------------------------------------+
> |Paul Spencer _pspencer at dmsolutions.ca_ <mailto:pspencer at dmsolutions.ca> |
> +-----------------------------------------------------------------+
> |Applications & Software Development |
> |DM Solutions Group Inc _http://www.dmsolutions.ca/|_
> +-----------------------------------------------------------------+
> _______________________________________________
> Chameleon mailing list
> _Chameleon at lists.maptools.org_ <mailto:Chameleon at lists.maptools.org>
> _http://lists.maptools.org/mailman/listinfo/chameleon_
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list