[mapserver-dev] RE: MapServer 6.0 Beta 1 - Expression Parser question

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Fri Mar 11 10:20:56 EST 2011


Nuts, I knew about that one (assuming attribute is a number), sorry Thomas. Added to my list...

Steve

-----Original Message-----
From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of thomas bonfort
Sent: Friday, March 11, 2011 5:23 AM
To: Smith, Michael ERDC-CRREL-NH
Cc: mapserver-dev at lists.osgeo.org; Daniel Morissette
Subject: Re: [mapserver-dev] RE: MapServer 6.0 Beta 1 - Expression Parser question

FWIW,

TEXT ([attribute])

alone does not work either (the label text ends up being "0" (without
the quotes).

--
thomas

On Fri, Mar 11, 2011 at 12:10, Smith, Michael ERDC-CRREL-NH
<michael.smith at usace.army.mil> wrote:
> No, it doesn't.
>
> No labels with
> TEXT ([LOCATION]+" "+[OBSERVED]+[UNITS]+"$"+[OBSTIME])
>
>
> Labels draw fine
> TEXT ("[LOCATION]"+" "+"[OBSERVED]"+"[UNITS]"+"$"+"[OBSTIME]")
>
>
> Mike
>
>
> --
> Michael Smith
> Remote Sensing/GIS Center
> US Army Corps of Engineers
>
>
>
> On 3/10/11 11:17 PM, "Daniel Morissette" <dmorissette at mapgears.com> wrote:
>
>> Hopefully the following should work as well, without the need for quotes
>> around attribute references, right?
>>
>>    TEXT ( [LOCATION]+" "+[OBSERVED]+[UNITS] +"$"+[OBSTIME] )
>>
>>
>> On 11-03-10 06:21 PM, Lime, Steve D (DNR) wrote:
>>> This is expected. It's in the RFC and migration guide. We had to treat these
>>> like true expressions so various formatting functions could be introduced.
>>>
>>> Steve
>>>
>>> -----Original Message-----
>>> From: Smith, Michael ERDC-CRREL-NH [mailto:michael.smith at usace.army.mil]
>>> Sent: Thursday, March 10, 2011 5:18 PM
>>> To: mapserver-dev at lists.osgeo.org; Lime, Steve D (DNR)
>>> Subject: MapServer 6.0 Beta 1 - Expression Parser question
>>>
>>> Steve,
>>>
>>> To get the expression parser to label my layers as pre 6.0, I¹ve had to
>>> change my TEXT statement from
>>>
>>> TEXT ( [LOCATION] [OBSERVED] [UNITS]$[OBSTIME] )
>>>
>>> to
>>>
>>> TEXT ( "[LOCATION]"+" "+"[OBSERVED]"+"[UNITS]" +"$"+"[OBSTIME]" )
>>>
>>> And put quotes around the string fields. Is this expected behavior or is
>>> this a bug with the new expression parser?
>>>
>>> Mike
>>>
>>>
>>
>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>
_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev



More information about the mapserver-dev mailing list