Converting values returned my mapserver

Adrian Versteegen A.Versteegen at BOM.GOV.AU
Tue Nov 28 18:08:57 EST 2006


Apologies if this is a duplicate message, the original seemed to be 
rejected by the listserv server..

We have weather observations with the wind speed values in the shapefile
in knots. Our customer wants the values displayed in km/h.

I am using a cgi/wms arrangement and have tried various combinations of
LABELITEM, EXPRESSION and TEXT to multiply the [Max_Wnd_Gus] attribute
by the conversion constant, so the following options in the map file
tried individually or collectively give the results shown:

LAYER
  LABELITEM ("Max_Wnd_Gus" * 1.85) -  gives an error,
  ...

  CLASS
    EXPRESSION ([Max_Wnd_Gus] * 1.85) - returns true, the values are
displayed,
    TEXT ('[Max_Wnd_Gus] * 1.85' km/h) - displays '<value> * 1.85' km/h

Any ideas?

Thanks,
Adrian



More information about the mapserver-users mailing list