legend

Bart van den Eijnden bartvde at XS4ALL.NL
Tue Aug 17 03:31:12 PDT 2004


Hi,

AFAIK this is not possible, you cannot set a legend title/label.

The legend utility uses the CLASS's NAME to output it as a label next to
the legend item. But you cannot have a label on top of all the legend
items.

Best regards,
Bart

>
> hello list,
>
> i have the layer  with many CLASS
>
> Is it possible to have the legend (gif) with name  of the layer ("hello
> world")
> other than with name of the class
>
> this is the my mapfile:
> LAYER
>
>     NAME "hello world"
>
>     TYPE line
>
>     DATA "classi_iff"
>
>    METADATA
>
>    "DESCRIPTION" "dede"
>
>    "RESULT_FIELDS" "ENTITY,LAYERS_TYPE,ELEVATION,THICKNESS,COLOR"
>
>    "RESULT_HEADERS" "Entity,Layer_type,Elevation,Thickness,Color"
>
>     END # Metadata
>
> CLASSITEM Layer_type
>
> CLASS
>
> NAME "Elevato"
>
> EXPRESSION "Elevato"
>
> COLOR 192 101 73
>
> TEMPLATE void
>
> END # Class
>
> CLASS
>
>
>
> END # Layer
>
>
> thanks
>
> Leo
>
>



More information about the MapServer-users mailing list