advantaje using Expressiones
Stephen Lime
steve.lime at dnr.state.mn.us
Wed Mar 7 13:50:32 PST 2001
Examples 1 and 3 have the wrong syntax. You can do regex expresions like:
CLASSITEM PERIODO
CLASS
EXPRESSION /^Paleogeno$/
...
END
You can also do regex in a logical expression like:
CLASS
EXPRESSION ('PERIODO]' =~ /^Paleogeno$/
...
END
Note there is no CLASSITEM. You could even just do a string comparison:
CLASSITEM PERIODO
CLASS
EXPRESSION "Paleogeno"
...
END
Example 2 should work just like the one immediately above, but is less efficient. It uses
a straight strcmp so it doesn't seem possible that it also matches strings ending in 'geno'.
Are you sure about that behavior?
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> bertha amalia serrato de la cruz <bertha_bonita at yahoo.com> 03/07/01 01:48PM >>>
hello
i have a problem
when i want to use an expreesiones like a
EXPRESSION ('[PERIODO]' eq '^Paleogeno$') Don't Work
EXPRESSION ('[PERIODO]' eq 'Paleogeno') work but no
correctly because give me Paleogeno and all the word
ending wtih "geno"
EXPRESSION ('^Paleogeno$') don't work
i don't know how can i resolve this problem, i'm
getting worried about it.
Which are the advantages using expressions????
=====
*--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Lic. Ciencias Computacionales Bertha A. Serrato
bserrato at cicese.mx
CICESE,División de Ciencias de la Tierra.
Ensenada, B.C.
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
More information about the MapServer-users
mailing list