Opened 13 years ago

Closed 13 years ago

#3736 closed enhancement (fixed)

Support attribute bindings within a TEXT expression

Reported by: sdlime Owned by: sdlime
Priority: high Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

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

Change History (2)

comment:1 by sdlime, 13 years ago

Added in 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

comment:2 by sdlime, 13 years ago

Resolution: fixed
Status: newclosed

Updated migration guide in r11161. Closing... Steve

Note: See TracTickets for help on using tickets.