[Mapserver-users] Logical expression is not working

Eduardo Patto Kanegae eduardo at consultoria.eti.br
Wed Jun 16 12:42:12 EDT 2004


YEs.

I put as u told me:

EXPRESSION "('[TIP_CODIGO]' eq 'XX' AND [FLAGS] > 0)"

but no point appears.

I also tried removing ():
EXPRESSION "'[TIP_CODIGO]' eq 'XX' AND [FLAGS] > 0"

but it didn't work too.

I've downloaded this binary ms 4.2 from www.maptools.org ( phpmapscript package)


Eduardo Patto Kanegae
http://www.consultoria.eti.br
UIN: 303747254

Treinamento em UMN MapServer - http://www.consultoria.eti.br/ptbr/?menuoption=mapserver
I Encontro Nacional de Usuários MapServer - http://mapserver.cttmar.univali.br/encontro2004
Projeto MapServer Brasil - http://mapserver.cttmar.univali.br

***Fim da Mensagem / End of Message ***





On 16 Jun 2004 11:51:16 -0400, Eric Bridger <eric at gomoos.org> escreveu:

> De: Eric Bridger <eric at gomoos.org>
> Data: 16 Jun 2004 11:51:16 -0400
> Para: Eduardo Patto Kanegae <eduardo at consultoria.eti.br>
> Assunto: Re: [Mapserver-users] Logical expression is not working
> 
> 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