[Mapserver-users] Logical expression is not working
Eric Bridger
eric at gomoos.org
Wed Jun 16 08:51:16 PDT 2004
On Wed, 2004-06-16 at 11:07, Eduardo Patto Kanegae wrote:
> I'm trying to display a point shapefile layer using logical expressions to classify the layer according to two field values but it's not working.
>
> my mapserver cgi is :
> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>
...
> it works fine, but not works if I write:
>
> +++++++++
> LAYER
> DATA "estabs"
> NAME "estabs"
> STATUS DEFAULT
> TYPE POINT
> UNITS METERS
> CLASS
> NAME "Açougue"
> EXPRESSION "(('[TIP_CODIGO]' eq '11') AND ([FLAGS] > 0))"
> STYLE
> COLOR 192 128 32
> MAXSIZE 15
> MINSIZE 5
> SIZE 15
> SYMBOL "SYM_ACOUGUE"
> END
> END
> CLASS
> NAME "Bar"
> EXPRESSION "(('[TIP_CODIGO]' eq '13') AND ([FLAGS] > 0))"
> STYLE
> COLOR 92 192 252
> MAXSIZE 15
> MINSIZE 5
> SIZE 15
> SYMBOL "SYM_BAR"
> END
> END
> END
> +++++++++
>
> it should be working, but I don't know what is wrong here...and no error log is being generated.
Just a guess, but have you tried removing the extra parentheses?
EXPRESSION "('[TIP_CODIGO]' eq '13' AND [FLAGS] > 0)"
More information about the MapServer-users
mailing list