[mapserver-users] String manipulation before label display????

Greg Fausak lgfausak at august.net
Tue Oct 9 09:19:33 EDT 2001


I'm using 3.5 mapscript php...

I've downloaded the road dataset from nationalatlas.gov.
It has the road names listed like:

'Interstate Route 35, US Route 77'
'Interstate Route 30'
'Interstate Route 45'

I'd like to run a little manipulation on the
strings before the fit and display are run on
the map.  That is, something like:

NAME =~ s/^Interstate Route //;
NAME =~ s/,.*//;

which would cause the about list to now be:
'35'
'30'
'45'

These numbers will fit on the interstate symbol...
Is there any way to do this?  Something similar to the
EXPRESSION keyword.

Thanks,

---greg
Greg Fausak
August.Net Services, LLC
lgfausak at august.net



More information about the mapserver-users mailing list