[Mapserver-users] Display of text labels by type
Eric Bridger
eric at gomoos.org
Thu Jan 22 11:45:56 PST 2004
You need define a CLASSITEM "type" at the LAYER level, assuming the field in your dbf file is named "type"
Then in the CLASS use e.g. EXPRESSION "City" and only the records of type City will be displayed using that CLASS color, size, label, etc.
You can create other classes for the other types or not.
At 11:58 AM 01/22/2004 -0800, Stephen Clark wrote:
>Hello,
>
>I have a shape point file with names of point locations.
>
>Each point location has a type such as City, town, locality, etc.,
>
>How can I specify that the point is annotated by using the "type" of point
>feature?
>
>I have included a sample layer file as reference.
>
>thanks
>Stephen
>
>
>
>LAYER
> NAME "bcgnis_pop_place"
> STATUS OFF
> DATA "d:/shp/NEBC_pop_place_name"
> TYPE ANNOTATION
> LABELITEM "NAME"
> CLASS
> COLOR 0 255 0
> LABEL
> MINFEATURESIZE 40
> MINDISTANCE 150
> POSITION CC
> COLOR 0 255 0
>
> FONT arial
> TYPE truetype
> SIZE 10
> #FORCE TRUE
> END
> END
>
>
>END
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list