Ticket #2378 (closed defect: fixed)
Color binding swaps green and blue values
|Reported by:||sdlime||Owned by:||sdlime|
|Component:||MapServer C Library||Version:||unspecified|
Description (last modified by sdlime) (diff)
From Jacob D.:
I am trying to make use of the colour binding feature, and it basically works, except... the colours are not quite right. My colours do not match those in MapInfo?, although I can make MapInfo? emulate the MapServer colours by swapping blue and green around. So basically: my RGB values are interpreted by MapServer as RBG.
and a follow up from Frank W.:
With some pointers from Howard, I found this segment of code in bindColorAttribute() in maputil.c:
I think this is responsible. If you are building from source, try just changing it to the more obvious organization. I'd also suggest you file a bug in Trac on the issue we will see if there is a subtle reason for this, or it's just a typo.
It's a typo. My test case just changed colors on features and I didn't bother to make sure they were changed to the right color.