problem with class expression
Peter H.M. Jacobs
peter.jacobs at vs42.nl
Sun Feb 13 22:58:30 PST 2000
Hello Stephen,
This is the case:
A user enters the name of a streetin a textbox. I query the street in the
following layer with an item/value itemquery and send the result back to
mapserv to create a map with the street in te center of the new map. Finally
I want to mark that street. I thought to do this with these two layers.
LAYER
NAME QueryLayer18Text # Straatnamen doorlopende wegen
TYPE ANNOTATION
STATUS QUERYONLY
DATA Layer18Text
QUERYITEM "TEXTSTRING"
QUERY
TEMPLATE
"http://../?map=/sites/../delft.map&mode=browse&scale=3000&mapxy=[shpmid]&va
lue=[value]"
END
END
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])
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
Regards,
Peter
More information about the MapServer-users
mailing list