Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support attribute bindings within a TEXT expression #3736

Closed
mapserver-bot opened this issue Apr 4, 2012 · 2 comments
Closed

Support attribute bindings within a TEXT expression #3736

mapserver-bot opened this issue Apr 4, 2012 · 2 comments

Comments

@mapserver-bot
Copy link

Reporter: sdlime
Date: 2011/03/15 - 15:51
Trac URL: http://trac.osgeo.org/mapserver/ticket/3736
In 5.6 you'd do something like:

TEXT (area is [area])

and with the expression changes in RFC 64 this becomes:

TEXT ("area is" + [area])

For complicated uses this can be onerous. I propose adding attribute binding (e.g. straight substitution) for a string expression, e.g.:

TEXT "area is [area]"

This will make upgrading to 6.0 easier for folks. We'll still reserve the () syntax for true text expressions.

Steve

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2011/03/15 - 20:19
Added in 3cc3a1a (r11160). Note that with this change you can't do something like:

TEXT 'hello [world]'

where [world] is not a reference to an attribute. As a workaround one could do:

TEXT ("hello [" + "world]")

Steve

@mapserver-bot
Copy link
Author

Author: sdlime
Date: 2011/03/15 - 20:22
Updated migration guide in b09ed9a (r11161). Closing... Steve

@ghost ghost assigned sdlime Apr 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants