[Mapserver-dev] Lists of objects...
Steve Lime
steve.lime at dnr.state.mn.us
Fri Dec 12 12:08:26 EST 2003
As it sits now you can already do:
EXPRESSION ("[ATTRIBUTE]" IN "CITY, VILLAGE")
and I've just added numeric support as well so this works to:
EXPRESSION ([attribute] IN "5,10,20")
Perhaps there's no reason to go any further since the parser
automatically turns the righthand argument into a list. The quotes may
be enough.
Steve
>>> <Jean-Francois.Doyon at CCRS.NRCan.gc.ca> 12/12/2003 9:05:14 AM >>>
Steve,
Being a Python guy, I just love the "in" statement indeed ... {} seem
to
make sense, it's kind of perl-ish :)
So something like:
EXPRESSION "[ATTRIBUTE] IN { 'CITY', 'VILLAGE' }"
??
Yup, I like it ... much more elegant than a bunch of "OR"'s, and such
forms
of expressions I think average users will find quite intuitive and easy
to
learn/understand.
J.F.
-----Original Message-----
From: mapserver-dev-admin at lists.gis.umn.edu
[mailto:mapserver-dev-admin at lists.gis.umn.edu]On Behalf Of Steve Lime
Sent: Thursday, December 11, 2003 5:15 PM
To: mapserver-dev at lists.gis.umn.edu
Subject: [Mapserver-dev] Lists of objects...
Anyone have an opinion on how we might denote lists in map files?
Initially I'm thinking about the IN operator for MapServer expressions
but lists might be useful in other places like for SHAPEPATH. Given
that
[]'s and ()'s already have significance to the lexer {}'s might be
useful. Thoughts?
Steve
_______________________________________________
Mapserver-dev mailing list
Mapserver-dev at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list