[mapserver-users] Mapfile, EXPRESSION for CLASS >> NAME

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Fri Mar 25 13:44:37 PDT 2016


All,

I think I’m trying to be too clever . . .

I have this MAPFILE chunk:

CLASS
COLOR 0 255 0
OUTLINECOLOR 0 0 0
      SIZE 10
      SYMBOL 'circle'
NAME '[FOLDERTYPE]'
TEXT '[FOLDERTYPE]'
      LABEL
        FORCE TRUE
        COLOR 255 255 0
        OUTLINECOLOR 0 0 0
        POSITION ur
TYPE TRUETYPE
FONT 'arial-bold'
SIZE 11
      END
    END


and I’m trying to use an Expression for the Label in the Legend graphic.  The FOLDERTYPE and is the two later code for map labels, while the FOLDERDESC is the long pretty name for the Legend.



Question, is it possible??  Ideas??  Before you say a separate class for each one, there are 120 FOLDERTYPEs in all, that would be a big, and hard to maintain Mapfile.

thanks

bobb




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160325/f2d630d8/attachment.htm>


More information about the MapServer-users mailing list