[Mapserver-users] Logical expression is not working :: SOLVED!!!
Eduardo Patto Kanegae
eduardo at consultoria.eti.br
Wed Jun 16 10:38:20 PDT 2004
Hi guys,
looking for "logical expression" at the list archive I found this:
http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0112/msg00033.html
so, I made:
EXPRESSION ('[TIP_CODIGO]' eq '08' AND [FLAGS]>0) # withou quotes around
and it works.
thanks all
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 Wed, 16 Jun 2004 13:42:12 -0300, "Eduardo Patto Kanegae" <eduardo at consultoria.eti.br> escreveu:
> De: "Eduardo Patto Kanegae" <eduardo at consultoria.eti.br>
> Data: Wed, 16 Jun 2004 13:42:12 -0300
> Para: Eric Bridger <eric at gomoos.org>
> Assunto: Re: [Mapserver-users] Logical expression is not working
>
> 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)"
> >
> >
> >
> >
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
>
More information about the MapServer-users
mailing list