legend, newbies question.
Stephen Lime
steve.lime at dnr.state.mn.us
Mon Apr 17 14:18:15 PDT 2000
You need a NAME for each class for it to show up in the legend.
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> "An Tay Nguy" <anguy at geoanalytic.com> 04/17/00 03:44PM >>>
Hi everyone,
I am trying to create a legend for a shapefile. The legend is created
correctly if my layer definition is:
LAYER
NAME dnnetano_10tm.shp
TYPE PolyLine
STATUS on
DATA 'd:/geodata/1_2million/alberta/dnnetano_10tm'
CLASS
Name 'Dnnetano_10tm.shp'
COLOR 240 118 178
OUTLINECOLOR 0 0 0
END # CLASS
END # LAYER
If I define my layer definition like the one below, I get a blank legend.
Does anyone knows what I did wrong? I would've expected 12 entries in the
legend.
LAYER
NAME alpparkg_10tm.shp
TYPE Polygon
STATUS on
DATA 'd:/geodata/1_2million/alberta/alpparkg_10tm'
CLASSITEM Alpparkg_
CLASS
EXPRESSION '2'
COLOR 192 101 73
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '3'
COLOR 255 215 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '4'
COLOR 189 183 107
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '5'
COLOR 247 181 103
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '6'
COLOR 206 195 149
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '7'
COLOR 205 155 29
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '8'
COLOR 240 230 140
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '9'
COLOR 167 175 94
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '10'
COLOR 192 144 88
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '11'
COLOR 139 69 19
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '12'
COLOR 172 150 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Alpparkg_
CLASS
EXPRESSION '13'
COLOR 105 139 105
OUTLINECOLOR 0 0 0
END # CLASS
END # LAYER
Thanks in advance for your help.
An Tay Nguy
More information about the MapServer-users
mailing list