expression in mapserver

Yewondwossen Assefa assefa at DMSOLUTIONS.CA
Wed May 2 09:59:45 EDT 2007


Thanks. works for me now.

Steve Lime wrote:
> Found and fixed the problem...
> 
> Steve
> 
>>>> Yewondwossen Assefa <assefa at DMSOLUTIONS.CA> 05/01/07 9:21 AM >>>
> Stephen Woodbridge wrote:
>> Yewondwossen Assefa wrote:
>>> Hi There,
>>>
>>> Using mapserver for svn, I am running into a problem where class 
>>> expressions seems to not validate : I have an expression which looks 
>>> like this :
>>>
>>> Layer
>>>  Class
>>>     EXPRESSION ("[Capital]" = "1")
>>>   ...
>>>
>>>  The evaluation of the expression in msEvalExpression return always 
>>> false.
>>>  This expression is valid with a build of Mapserver done early last week.
>>>
>>>  Did some one have a similar issue ?
>>>
>>> Thanks
>>>
>>>  PS : I am running on windows
>>>
>> Assefa,
>>
>> This is probably not you problem, but when I look at the expression 
>> above the following alarms sound for me:
>>
>> 1) Capital vs CAPITAL
>> 2) =  vs ==
>> 3) Do you need the quotes about "[Capital]"? I thought not.
>>
>> -Steve W
>>
> Steve,
> 
>   I tried it with different combination (Capital vs CAPITAL, = vs eq, 
> quotes and no quotes). The thing is that this same map file with the 
> expression works with a MapServer build from last week but not that one 
> I grabbed from svn yesterday. It might just be my build which is not 
> correct but wanted to know if others have the same issues (at least on 
> Windows).
> 
> Thanks.
> 
> 
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list