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); [email protected]<mailto:[email protected]> 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: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Basques, Bob (CI-StPaul) Sent: Saturday, December 13, 2014 9:35 PM To: [email protected]<mailto:[email protected]> 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
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
