No subject
Gregor Mosheh
stigmata_blackangel at YAHOO.COM
Mon Dec 20 13:57:27 PST 2004
I'm trying to work a search-and-highlight capability
into our mapfile. Using static classes and
expressions, I can get selected features to have
non-default coloring. Easy.
The examples I've seen of letting the user dynamically
enter data for an expression use only the value, but
I'll want to allow the user to supply the column and
an operator, also. e.g. "price, <=, 50000".
How can I make my mapfile handle this properly?
I've tried something like this:
EXRPRESSION ([%col%] %op% %val%)
but it has problems when no search has been performed
yet; if any of those 3 elements are missing it's an
invalid expression and it barfs. Any thoughts on how I
can "set a default" for these, or cause the expression
to be gracefully ignored if this happens?
Also, is it still true that expressions like this can
only be performed on shapefile layers?
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
More information about the MapServer-users
mailing list