legend, newbies question.

Pericles S. Nacionales pnaciona at gis.umn.edu
Mon Apr 17 14:31:51 PDT 2000


Try adding names for each class.

i.e.
CLASSITEM Alpparkg_
   CLASS
       NAME Description of "2"
       EXPRESSION '2'
       COLOR 192 101 73
       OUTLINECOLOR 0 0 0
   END  # CLASS

-Perry Nacionales
pnaciona at gis.umn.edu

----- Original Message -----
From: "An Tay Nguy" <anguy at geoanalytic.com>
To: "Mapserver-Users" <mapserver-users at lists>
Sent: Monday, April 17, 2000 3:44 PM
Subject: legend, newbies question.


> 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