[Chameleon] Image format of map
Paul Spencer
pspencer at dmsolutions.ca
Thu Apr 28 07:57:14 EDT 2005
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
>
>
>>>>Dirk Jesko <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
> 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