[Mapserver-users] apostrophe problem

Steve Lime steve.lime at dnr.state.mn.us
Fri Jul 18 13:15:55 EDT 2003


Hmmmm.... That's a straight string comparison so I'm assuming the
MapServer lexer is having trouble when the expression is parsed. One
workaround would be to use a regex and replace = "O'NEILL" with =~
/O.NEILL/ (I think that's right). Please file a bug about this one so
that it gets adressed in the lexer...

Steve

>>> "Dan Arnold" <Dan.Arnold at noaa.gov> 07/18/03 09:40AM >>>
Hello all,
 
I'm having a problem with an apostrophe being in a city name that I'm
trying add to one of my maps.
 
This is what the .map file looks like where it calls the city name:
 
EXPRESSION ('[NAME]' = "O'NEILL" and '[ST]' = "NE")
 
I've checked the shape file and it is in there exactly like it is
shown
above: O'NEILL
 
All the other cities for this map show up just fine, but that one does
not.
 
Any ideas on how I can get around the " ' " in the city name? Or is
this
just not possible?
 
Thanks for any help!

--
Dan Arnold
Webmaster
National Weather Service
Central Region Headquarters
dan.arnold at noaa.gov 
816.891.7734 x486

 



More information about the mapserver-users mailing list