[mapserver-users] v5.0.0 - CLASSITEM has double quote in field value
Mike Saunt
mikesaunt at gmail.com
Fri Jul 18 05:49:03 PDT 2008
thanks Alexandre but unfortunately it didn't work
Do you know if there is a way of forcing MapServer to read out the literal
string i.e. sort of like escaping it? in .NET you can say @stringvariable
and it will ignore quotes inside etc?
Cheers
Mike
2008/7/18 Alexandre Dube <adube at mapgears.com>:
> Hi Mike,
>
> I'm not sure about that, but try eq instead of =
>
> EXPRESSION ('[TRAFFIC_TYPE]' eq 'Lane Closure' OR ...
>
> Best Regards,
> Alexandre
>
> Mike Saunt wrote:
>
>> Hi All
>>
>> I've got a MapFile that used to work fine in v4.10 but now fails in v5.0
>>
>> Basically the CLASSITEM field has double quote in field value and this is
>> then returning an error - msEvalExpression: Expression parser error. Failed
>> to parse expression
>>
>> The CLASS EXPRESSION looks like this
>> CLASSITEM 'TRAFFIC_TYPE' CLASS
>> EXPRESSION ('[TRAFFIC_TYPE]' = 'Lane Closure' OR
>> '[TRAFFIC_TYPE]' = 'Multi-Way Signals' OR '[TRAFFIC_TYPE]' = 'Road Closure'
>> OR '[TRAFFIC_TYPE]' = 'Stop/Go Boards' OR '[TRAFFIC_TYPE]' = 'Two-Way
>> Signals')
>> STYLE # Severe (RED)
>> SYMBOL 'triangle'
>> SIZE 9
>> COLOR 255 0 0
>> OUTLINECOLOR 0 0 0
>> END
>> END
>>
>> I've tried double quote vs. single quotes in the map file but to no avail
>>
>> Anyone any thoughts?
>>
>> Kind regards
>> Mike
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
>
> --
> Alexandre Dubé
> Mapgears
> www.mapgears.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080718/2cb12be5/attachment.htm>
More information about the MapServer-users
mailing list