[mapserver-users] legend
Patricio Gigoux
pgigoux at munistgo.cl
Thu Apr 4 13:24:34 PST 2002
Thanks a lot
El Jue 04 Abr 2002 16:12, Stender, Amy ERDC-CRREL-NH escribió:
> you need that "NAME" keyword inside your classes. so you would have the
> following:
>
> LAYER
> NAME pr1
> TYPE POLYGON
> STATUS On
> DATA prc01
> CLASSITEM 'cl_zna'
> CLASS
> NAME "A"
> EXPRESSION "A"
> COLOR 79 6 97
> END
> CLASS
> NAME "A1"
> EXPRESSION "A1"
> COLOR 79 6 97
> END
> END
>
> Amy L. Stender
> Remote Sensing/GIS Center
> Cold Regions Research and Engineering Laboratory
> United States Army Corps of Engineers
> 72 Lyme Road, Hanover, NH 03755-1290
> Tel: (603) 646-4733
> Fax: (603) 646-4730
> astender at crrel.usace.army.mil
>
>
> -----Original Message-----
> From: Patricio Gigoux [mailto:pgigoux at munistgo.cl]
> Sent: Thursday, April 04, 2002 2:24 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] legend
>
>
> I have the next in map file
>
> LEGEND
> KEYSIZE 18 12
> LABEL
> TYPE BITMAP
> SIZE MEDIUM
> COLOR 255 255 255
> END
> STATUS ON
> END
>
> and I define the next layers
> LAYER
> NAME pred
> TYPE POLYGON
> MAXSCALE 25000
> DATA pred
> STATUS On
> CLASSITEM 'cod'
> CLASS
> NAME "pred"
> OUTLINECOLOR 181 181 145
> END
> TOLERANCE 3
> END
>
> and
>
> LAYER
> NAME pr1
> TYPE POLYGON
> STATUS On
> DATA prc01
> CLASSITEM 'cl_zna'
> CLASS
> EXPRESSION "A"
> COLOR 79 6 97
> END
> CLASS
> EXPRESSION "A1"
> COLOR 79 6 97
> END
>
> the problem is when I draw legend apear only first layer
> What is my wrong?
>
> Thank in advance
> Patricio
More information about the MapServer-users
mailing list