Plotting Symbols

Brent Fraser bfraser at geoanalytic.com
Sun Nov 14 13:24:34 EST 1999


Kieran (and others),

  Below is a typical set of entries
for symbolizing based on an attribute
value stored in the shapefile.  The 
CLASSITEM points to the column in
the DBF file, while the EXPRESSION
entry indicates the DBF value for
the CLASS.  The CLASS entry defines
SYMBOL value to use in the symbol
set.

LAYER
  NAME Rivers
  TYPE POLYLINE
  STATUS ON
  DATA Alberta/psu/dnnetln_10TM

  CLASSITEM DNLNTYPE
  CLASS
    NAME "Rivers"
    EXPRESSION "1"
    SYMBOL 0
    COLOR 130 130 255
  END
  CLASS
    NAME "Other Rivers"
    EXPRESSION "5"
    SYMBOL 1
    COLOR 210 210 255
  END
END # Layer

Your entries in your map file might
look like:

LAYER
  NAME "My Points"
  TYPE POINT
  STATUS ON
  DATA mypoints
  CLASSITEM ynflag
  CLASS
    NAME "Yes"
    EXPRESSION "Y"
    SYMBOL 0
  END
  CLASS
    NAME "No"
    EXPRESSION "N"
    SYMBOL 1
  END
END # Layer

Brent
----- Original Message ----- 
From: Kieran Ames <kames at erols.com>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Saturday, November 13, 1999 8:37 PM
Subject: Plotting Symbols


> Hi again,
> Could someone please give me a quick overview on the use of symbols for
> identifying points?
> The shape file I'm using has a text field in its .dbf that is a
> Yes/No/Other flag. ("Y", "N", and blank).
> How might I plot these points as symbols based on the contents of this
> flag field so that users could tell the difference when the data is put
> onto the gif output?
> 
> Thanks much to all.
> 
> Kieran
> 
> 




More information about the mapserver-users mailing list