MapServer Enhancement Proposal #1134
Pirmin Kalberer
sp_ml at SOURCEPOLE.COM
Thu Dec 23 12:30:46 EST 2004
Hi Sean,
Am Mittwoch, 15. Dezember 2004 22.20 schrieb Sean Gillies:
>
> Early next year I would like to begin working at embedding
> Python expressions into MapServer. Here is the proposal:
>
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1134
>
> If you are interested, add yourself to the issue and gimme
> some feedback.
We made some experience embedding an interpreter (Ruby) into a C++ program.
It works very well, and we discover more and more possibilities while using
it. We managed to get rid of the "f" object, adding the expression as a
method to feature instance objects. Your examples could look like:
"FID.to_i == 1001"
"FNAME.upcase == 'FOO'" or "FNAME.include?('F')"
"FNAME.upcase != 'FOO'" or "['Foo', 'Bar'].include?(FNAME)"
As I said, it was C++ and Ruby, so I'm not sure, whether this is also possible
in this case.
Pirmin
--
Pirmin Kalberer
Sourcepole - Linux & Open Source Solutions
http://www.sourcepole.com
More information about the mapserver-dev
mailing list