[mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Mon Dec 15 14:12:34 PST 2014


Will do.

bobb

From: Lime, Steve D (MNIT)
Sent: Monday, December 15, 2014 4:09 PM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users at lists.osgeo.org
Subject: RE: [mapserver-users] BUG (??) in CGI variable substitution. COLOR change occurs up too high in the hierarchy of Mapfile

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/88a1e55e/attachment.html>


More information about the mapserver-users mailing list