-
Notifications
You must be signed in to change notification settings - Fork 71
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
Comments
Lars,
This is clearly in "undefined behaviour" land and whereas using -1 for
color was used by the GD render until mapserver 5 this isn't the case
anymore. I suspect the funny colours you're getting using negative values
is the effect of unsigned char wrapping and not something that has anything
intentional to it. This should clearly not be documented anywhere as there
is no reason this behaviour would remain in a subsequent (even minor)
release.
Regards,
Thomas
Le jeu. 23 juil. 2020 à 18:56, Lars Schylberg <[email protected]> a
écrit :
… 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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#339>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACXQRPQT55EWTTICL5XG6DR5BTTPANCNFSM4PF5L6TA>
.
|
Thomas, |
@LarsSchy @tbonfort - thanks for the feedback. It seems to make sense to not document these and assume any negative values are invalid colours. |
Thanks Thomas for clarifying. I'm +1 for removing these from msautotest. |
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
The text was updated successfully, but these errors were encountered: