CLASSITEM and EXPRESSION for a float field

Karsten Bleßmann karsten.blessmann at STADT-BRANDENBURG.DE
Wed Jun 28 05:54:48 EDT 2006


Try this:

... ...
CLASSITEM "objart"  
... ...
CLASS
	NAME "anyone"
	EXPRESSION ([objart] = 3000)
                ... ...
END

it works on our server - [objart] is float8 on a PostGIS DB ... ..

Regards
Karsten Blessmann


Luca Manganelli <luca76 at GMAIL.COM> wrote on 28.06.2006 10:56:38:
> 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