Expressions

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Expressions

Eduardo Zenaide
hi, all,

i'm trying to understand how expressions work here.
i have one layer with IDH_2000 class wich has lots of numerical values.
i try using ("[IDH_2000]" <= /0.4/) and it returns the error:

msQueryByAttributes(): Search returned no results. No matching record(s) found.
msEvalExpression: Expression parser error. Failed to parse expression
msyyparse(): Expression parser error. syntax error

i think i'm using the wrong syntax, but i've read
 http://mapserver.gis.umn.edu/docs/howto/msexpressions
and couldn't get it.

if i do the same but using =~ works :P
so, any clues?

thanks!

--
Eduardo Zenaide
Reply | Threaded
Open this post in threaded view
|

Re: Expressions

Steve Lime
Try ([IDH_2000] <= 0.4)

Steve

>>> Eduardo Zenaide <[hidden email]> 1/5/2007 11:50:07 AM >>>
hi, all,

i'm trying to understand how expressions work here.
i have one layer with IDH_2000 class wich has lots of numerical
values.
i try using ("[IDH_2000]" <= /0.4/) and it returns the error:

msQueryByAttributes(): Search returned no results. No matching
record(s)
found.
msEvalExpression: Expression parser error. Failed to parse expression
msyyparse(): Expression parser error. syntax error

i think i'm using the wrong syntax, but i've read
 http://mapserver.gis.umn.edu/docs/howto/msexpressions 
and couldn't get it.

if i do the same but using =~ works :P
so, any clues?

thanks!

--
Eduardo Zenaide
Reply | Threaded
Open this post in threaded view
|

Re: Expressions

Eduardo Zenaide
thanks, Steve!

2007/1/5, Steve Lime <[hidden email]>:
Try ([IDH_2000] <= 0.4)

Steve

>>> Eduardo Zenaide <[hidden email]> 1/5/2007 11:50:07 AM >>>
hi, all,

i'm trying to understand how expressions work here.
i have one layer with IDH_2000 class wich has lots of numerical
values.
i try using ("[IDH_2000]" <= /0.4/) and it returns the error:

msQueryByAttributes(): Search returned no results. No matching
record(s)
found.
msEvalExpression: Expression parser error. Failed to parse expression
msyyparse(): Expression parser error. syntax error

i think i'm using the wrong syntax, but i've read
http://mapserver.gis.umn.edu/docs/howto/msexpressions
and couldn't get it.

if i do the same but using =~ works :P
so, any clues?

thanks!

--
Eduardo Zenaide



--
Eduardo Zenaide
Reply | Threaded
Open this post in threaded view
|

Re: Expressions

Eduardo Zenaide
there's a way to apply a query to all features without name all?
for example:

 (* <= 0.4)

i've tried this and returns:

 msQueryByAttributes(): Search returned no results. No matching record(s) found.

even if there is a match record.


thanks!

2007/1/5, Eduardo Zenaide <[hidden email]>:
thanks, Steve!

2007/1/5, Steve Lime <[hidden email] >:
Try ([IDH_2000] <= 0.4)

Steve

>>> Eduardo Zenaide <[hidden email]> 1/5/2007 11:50:07 AM >>>
hi, all,

i'm trying to understand how expressions work here.
i have one layer with IDH_2000 class wich has lots of numerical
values.
i try using ("[IDH_2000]" <= /0.4/) and it returns the error:

msQueryByAttributes(): Search returned no results. No matching
record(s)
found.
msEvalExpression: Expression parser error. Failed to parse expression
msyyparse(): Expression parser error. syntax error

i think i'm using the wrong syntax, but i've read
<a href="http://mapserver.gis.umn.edu/docs/howto/msexpressions" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://mapserver.gis.umn.edu/docs/howto/msexpressions
and couldn't get it.

if i do the same but using =~ works :P
so, any clues?

thanks!

--
Eduardo Zenaide



--
Eduardo Zenaide



--
Eduardo Zenaide
Reply | Threaded
Open this post in threaded view
|

Re: Expressions {Scanned}

Siki Zoltan
Hi Eduardo,

I suppose you want to create a logical expression on a column of the layer
data table. Try
EXPRESSION ([COLUMN_NAME] < 0.4)
See http://mapserver.gis.umn.edu/docs/howto/msexpressions

Zoltan

On Fri, 12 Jan 2007, Eduardo Zenaide wrote:

> there's a way to apply a query to all features without name all?
> for example:
>
>  (* <= 0.4)
>
> i've tried this and returns:
>
>  msQueryByAttributes(): Search returned no results. No matching record(s)
> found.
>
> even if there is a match record.
>
>
> thanks!
>
> 2007/1/5, Eduardo Zenaide <[hidden email]>:
> >
> > thanks, Steve!
> >
> > 2007/1/5, Steve Lime <[hidden email]>:
> > >
> > > Try ([IDH_2000] <= 0.4)
> > >
> > > Steve
> > >
> > > >>> Eduardo Zenaide <[hidden email]> 1/5/2007 11:50:07 AM >>>
> > > hi, all,
> > >
> > > i'm trying to understand how expressions work here.
> > > i have one layer with IDH_2000 class wich has lots of numerical
> > > values.
> > > i try using ("[IDH_2000]" <= /0.4/) and it returns the error:
> > >
> > > msQueryByAttributes(): Search returned no results. No matching
> > > record(s)
> > > found.
> > > msEvalExpression: Expression parser error. Failed to parse expression
> > > msyyparse(): Expression parser error. syntax error
> > >
> > > i think i'm using the wrong syntax, but i've read
> > >  http://mapserver.gis.umn.edu/docs/howto/msexpressions
> > > and couldn't get it.
> > >
> > > if i do the same but using =~ works :P
> > > so, any clues?
> > >
> > > thanks!
> > >
> > > --
> > > Eduardo Zenaide
> > >
> >
> >
> >
> > --
> > Eduardo Zenaide
>
>
>
>
>