problem with class expression

Peter H.M. Jacobs peter.jacobs at vs42.nl
Sun Feb 13 06:35:04 PST 2000


Hello,

I'm having trouble with a class expression. This is the case

LAYER
   NAME Layer18Text # Straatnamen doorlopende wegen
   TYPE ANNOTATION
   STATUS DEFAULT
   DATA Layer18Text
   MAXSCALE 12000
   LABELITEM "TEXTSTRING"
   LABELANGLEITEM "TEXT_ANGLE"
   LABELSIZEITEM "TEXT_SIZE"
   CLASSITEM "TEXTSTRING"
   CLASS
     NAME SELECTED
 !!  EXPRESSION ([TEXTSTRING] eq [value]) #value is a cgi-variable from
MySQL It doesn't work !!
     SYMBOL 0
     COLOR 0 0 0
     LABEL
        ANTIALIAS
        COLOR 0 0 0
        FONT arial
	  TYPE TRUETYPE
        SIZE 20
        POSITION UR
     END
   END
   CLASS
	NAME NOTSELECTED
	EXPRESSION /./ #the rest
   ...
   END
END

If I try for example 'Markt' instead of [value] where I know that there is a
street Markt the expression is still not correct. I tried to use the feature
but this failed as well

FEATURE
	POINTS [shpmid]
      CLASS SELECTED
	TEXT "TEXTSTRING]
END

Is there anyone who can help me
Regards,

Peter




More information about the MapServer-users mailing list