[mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile
Lime, Steve D (MNIT)
Steve.Lime at state.mn.us
Mon Dec 15 14:09:11 PST 2014
Looking at the code it's definitely a bug. The configuration updater doesn't take into account styles within a label so it applies the snippet you send to the label object. If your snippet contained reference to an attribute a label doesn't support then you'd get a parsing error. Because 'color' is supported by both it happily changes the wrong color. Can you file a ticket?
Steve
From: Basques, Bob (CI-StPaul)
Sent: Monday, December 15, 2014 10:53 AM
To: Lime, Steve D (MNIT)
Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile
V6.4.1
From: Lime, Steve D (MNIT)
Sent: Monday, December 15, 2014 10:50 AM
To: Basques, Bob (CI-StPaul); mapserver-users at osgeo.org<mailto:mapserver-users at osgeo.org>
Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile
Which version are you running?
From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Basques, Bob (CI-StPaul)
Sent: Saturday, December 13, 2014 9:35 PM
To: mapserver-users at osgeo.org<mailto:mapserver-users at osgeo.org>
Subject: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile
All,
Using this CGI fragment:
. . .?map_layer[Points].class[0].LABEL[0].STYLE[0]=color+0+255+0& . . .
and I'm trying to set the color in this mapfile fragment inside of the STYLE (inside of the LABEL bloc):
NAME "GPS History"
TEXT "[seq]"
LABEL
# OUTLINECOLOR 255 255 255
COLOR 255 255 254
FONT "arial-bold"
TYPE truetype
SIZE 9
POSITION cc
#PARTIALS false
FORCE true
STYLE
GEOMTRANSFORM labelpoly
COLOR 255 0 0
#OUTLINECOLOR 0 0 0
OUTLINECOLOR 0 0 0
WIDTH 1
END
END
The change is occurring however at the COLOR value in the LABEL (text-color), not at the STYLE level (background polygon color). I assume this is something that hasn't been run into by anyone since the background label polys were implemented, and there being two different levels where the COLOR value can be set inside a single code block, or am I missing something?
Thanks
bobb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20141215/24299518/attachment.htm>
More information about the MapServer-users
mailing list