CLASSITEM and EXPRESSION for a float field
Steve Lime
Steve.Lime at DNR.STATE.MN.US
Wed Jun 28 15:45:06 PDT 2006
In this case you are doing a straight string comparison. I believe for shapefiles the double to string conversion respects the number of decimal places defined for the field. So if you have 5 decimal places you'll need:
EXPRESSION '9.00000'
Steve
>>> Luca Manganelli <luca76 at GMAIL.COM> 06/28/06 3:56 AM >>>
Hi, I'm attempting to use the EXPRESSION for a float field, but I
don't know the right manner.
I.e.:
LAYER
NAME 'test'
...
CLASSITEM 'floatfield'
....
CLASS
NAME "testclass1"
EXPRESSION '9'
...
END
END
my mapserver doesn't view the objects with EXPRESSION '9', so I
suspect that the '9' is not right (I tried with '9.0', too).
Any idea?
More information about the MapServer-users
mailing list