[Chameleon] Omitting Layer From Map Template Changes Image Colors
Paul Spencer
pspencer at dmsolutions.ca
Wed Jun 22 08:58:49 EDT 2005
Bart,
the only time I have seen color corruption like this was related to
using imagery in 8-bit output formats. I really think this is a
mapserver-related bug but I have no idea how you would isolate this as a
test case since the two pieces (map draw and legend draw) are completely
isolated ... it doesn't make any sense that they could be somehow
affecting one-another. Unless SHOWINLEGEND is somehow a newly
recognized metadata value in mapserver ... try changing the name to
something else and see if the problem persists.
Cheers
Paul
Jacob Delfos wrote:
> Bart,
>
> I have experienced a similar problem, though I am not sure whether it is
> related to the showing/not showing of a layer. In my case, upgrading to
> php_mapscript_42 (or higher) fixed it, because I only had it happen in
> php_mapscript_40.
>
> regards,
>
> Jacob
>
>
> -----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 Bart Wood
> Sent: 16 June 2005 10:20
> To: chameleon at lists.maptools.org <mailto:chameleon at lists.maptools.org>
> Subject: [Chameleon] Omitting Layer From Map Template Changes Image Colors
>
> Hello Everyone,
> I've created a layer that I don't want appearing in the legend. I've
> modified the LAYER in the map file to include a meta-data tag called
> "SHOWINLEGEND". Then I've modified the legend template to not
> include any layers that have the SHOWINLEGEND tag. When I do this the
> style image (a small blue dot) changes color in the map. It goes from
> blue to brown when I zoom out. When I zoom in the dot goes back to
> blue. Any ideas out there what is happening?
>
> I've modified the layers definition to look like this...
>
> LAYER
> NAME "Survey"
> STATUS ON
> TYPE POINT
> LABELCACHE FALSE
> METADATA
> SHOWINLEGEND "nope"
> END
>
> CLASS
> NAME "OffshrSrv"
> MAXSCALE 1999999
> STYLE
> COLOR 0 204 0
> SYMBOL "imgSurveyQueried.gif"
> MINSIZE 10
> END
> END
> END
>
> And the legend template look like this...
>
> [if name=SHOWINLEGEND oper=isnull]
> ... do all the stuff to show the legend info ...
> [/if]
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org <mailto:Chameleon at lists.maptools.org>
> http://lists.maptools.org/mailman/listinfo/chameleon
> <mailto:jacob.delfos at maunsell.com>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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