Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undocumented Mapfile COLOR options #339

Open
LarsSchy opened this issue Jul 23, 2020 · 5 comments
Open

Undocumented Mapfile COLOR options #339

LarsSchy opened this issue Jul 23, 2020 · 5 comments
Milestone

Comments

@LarsSchy
Copy link
Contributor

It is possible to user negative color values in Mapserver. This is not documented. The most common way is to use -1 as the red value which makes a layer transparent. However some other effects can also be achieved. I documented some of those in my Mapserver Easter Egg findings: https://lists.osgeo.org/pipermail/mapserver-users/2018-March/080547.html
Those are also documented in the GIST: https://gist.github.com/LarsSchy/df91553f1fda02196ba7881a129b4c64
This issue was rasied lately by a question on the dev-list by Seth: https://lists.osgeo.org/pipermail/mapserver-dev/2020-July/016246.html

@tbonfort
Copy link
Member

tbonfort commented Jul 23, 2020 via email

@LarsSchy
Copy link
Contributor Author

Thomas,
I tend to agree with You, that this should not be documented.
Well since Jeff asked me, I filed the ticket. But I think this could really confuse people, so this possibility should really be removed.
That is was why I wrote about this as a novel Easter Egg hidden feature and didn't sugest to document it in the first place two years ago.
Regards /Lars

@geographika
Copy link
Member

@LarsSchy @tbonfort - thanks for the feedback.
I was trying to get a list of valid options for all Mapfile properties, and while testing validation came across -255 -255 -255 and -1 -1 -1 in Mapfiles in msautotest (see https://lists.osgeo.org/pipermail/mapserver-dev/2020-July/016246.html).

It seems to make sense to not document these and assume any negative values are invalid colours.
@tbonfort - any opinion on removing the values from msautotest Mapfiles?

@jmckenna
Copy link
Member

jmckenna commented Jul 23, 2020

Thanks Thomas for clarifying. I'm +1 for removing these from msautotest.

@sdlime
Copy link
Member

sdlime commented Jul 23, 2020 via email

@jmckenna jmckenna added this to the 8.0 Release milestone Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants