Class Error
Steve Lime
steve.lime at DNR.STATE.MN.US
Mon Oct 11 10:25:26 PDT 2004
What were the error messages?
Also, if you're just doing single value comparisons I'd use string
expressions. E.g:
CLASSITEM 'REG_CODE'
CLASS
EXPRESSION '10'
...
END
CLASS
EXPRESSION '11'
...
END
and so on... Much faster that way.
Steve
>>> Ike Brian <ikebrian at YAHOO.COM> 10/11/2004 11:38:31 AM >>>
Hello,
I am trying to classify the a polygon and have the following codes but
was given me error messages.Could anyone help me to debug it?
#
# Start of layer definitions
#
LAYER
NAME "prov_bound"
STATUS ON
DATA "province"
TYPE LINE
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 0
TOLERANCEUNITS PIXELS
METADATA
"DESCRIPTION" "Province"
END
CLASSITEM 'SYMBOL'
# SYMBOL needs single quotes because it's both a field name in the
shapefile and a keyword for .MAP files
CLASS
COLOR 255 120 120
SYMBOL 0
EXPRESSION ([REG_CODE]=10)
NAME "Terre-Neuve"
END
CLASS
COLOR 120 255 120
SYMBOL 0
EXPRESSION ([REG_CODE]=11)
NAME "Ile-du-Prince-Edouard"
END
CLASS
COLOR 120 120 255
SYMBOL 0
EXPRESSION ([REG_CODE]=12)
NAME "Nouvelle-Ecosse"
END
Thank you very much hoping to hear from you
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
More information about the MapServer-users
mailing list