Mapublisher users,
Does anyone happen to use the substitute_rx() function in mapublisher's MAP Attribute expression builder? I'm attempting to abbreviate road name endings in an attribute table so for example "Main Street" will become "Main St" Here is what I've tried thus far:
SUBSTITUTE_RX(name, "Street$", "St") SUBSTITUTE_RX(name, "Lane$", "Ln") SUBSTITUTE_RX(name, "South$", "S") SUBSTITUTE_RX(name, "North", "N")
SUBSTITUTE_RX(name, "East$", "E") SUBSTITUTE_RX(name, "West$", "W") SUBSTITUTE_RX(name, "Avenue$", "Ave") SUBSTITUTE_RX(name, "Drive$", "Dr")
SUBSTITUTE_RX(name, "Boulevard$", "Blvd") SUBSTITUTE_RX(name, "Pike$", "PK") SUBSTITUTE_RX(name, "Parkway$", "Pkwy") SUBSTITUTE_RX(name, "Terrace$", "Trce")
I also have access to QGIS if anyone knows a way to do this with QGIS or with OGR2OGR SQL.
much thanks,
-Chris