[mapserver-users] Multiple CLASSITEMs

Ari Yakar ayakar at globvision.com
Mon Mar 18 17:22:49 EST 2002


First of all thanks very much to Daniel Morissette  and Stephen Woodbridge
for
the quick response for my previous post on  Mapinfo TAB files and lcc
projections.


I am having problem with EXPRESSIONS and string comparison. I couldn't find
any
answer to my questions in the Mapserver documentation or the mailing list
archives


In the map file I have;



	....
	....
	....
LAYER
  NAME Canada
  TYPE POLYGON

	....
	....
	....

  CLASSITEM Province_Name
#  CLASSITEM Pop_1990
  LABELITEM Province

 CLASS
    NAME "Ontario"
   EXPRESSION 'Ontario'  				// Works if "CLASSITEM Pop_1990" is commented
out
    #EXPRESSION ([Province_Name] eq "Ontario")  // Doesn't works even if
"CLASSITEM Pop_1990" is commented out
    #EXPRESSION ([Province_Name] eq 'Ontario')  // Doesn't works even if
"CLASSITEM Pop_1990" is commented out
								// Tried also with '='
    COLOR 153 204 255
    OUTLINECOLOR  0 0 0
    TEMPLATE "resultL1.html"
  END

	....
	....
	....


There is only 1 class.


My questions are;
	Is it possible to have multiple CLASSITEMs in one layer?
	How could I write the above expression with 'eq' operator?
	Is there any other source of information on EXPRESSIONs?


Thanks in advance

Ari Yakar
Globvision Inc.











More information about the mapserver-users mailing list