[mapserver-users] MapServer 5 - MapScript Problem setExpression

Steve Lime Steve.Lime at dnr.state.mn.us
Mon Dec 1 08:03:40 PST 2008


That should fix it. The problem is that MapServer strings must start
with a alpha character. Otherwise
they must be quoted.

Steve

>>> On 12/1/2008 at 9:04 AM, in message
<4933FD15.40109 at dmsolutions.ca>,
Yewondwossen Assefa <yassefa at dmsolutions.ca> wrote:

> Can you try something like $oClass->setExpression('"3NA"')
> 
> Later,
> 
> Géo Sphère wrote:
>> Hello !
>>  
>> I use PHP Mapscript (MapServer 5.0.2).
>>  
>> I do $oClass->setExpression("3NA"), then i save the mapfile.
>> The expression saved in the mapfile is "3"
>>  
>> Any idea ?
>>  
>> Thanks
>> 
>> 
>>
------------------------------------------------------------------------
>> 
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org 
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users 
> 



More information about the MapServer-users mailing list