Re: [mapserver-users] querybyattributes in version 7

2016-10-20 Thread Moretti Edmar
Paul,

thank you, your example solved my problem in Postgis and Shapefile layers
(Mapserver version 7)

Edmar

2016-10-20 18:47 GMT-02:00 Moen, Paul T. :

> Try putting brackets around the field and parenthesis around the query
> string.
>
>
>
> $Layer-> querybyattibutes ( "col", "([col] > 0 AND [col] < 100)”)
>
>
>
> Paul
>
>
>
>
>
>
> *From: *mapserver-users  on
> behalf of Moretti Edmar 
> *Date: *Wednesday, October 19, 2016 at 9:12 PM
> *To: *MapserverList OSGEO 
> *Subject: *[mapserver-users] querybyattributes in version 7
>
>
>
> Hello.
>
> How to make a query using "querybyattributes" and operators such as AND, OR ? 
> example:
>
> $Layer-> querybyattibutes ( "col", "col > 0 AND col < 100"). I'm using 
> MapScript 7.x. In previous versions it worked, but in version 7 no longer 
> works.
>
>
>
> --
>
> 
> ___
>
> Edmar Moretti
>
> http://www.edmarmoretti.com.br
>
> Skype: edmar.moretti
>
> gTalk: edmar.moretti
>
>
>
> Para tirar dúvidas sobre o i3Geo utilize a lista:
>
> https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo
>
>
>
> https://gratipay.com/~edmar.moretti/
>
>
>
>
>



-- 
___
Edmar Moretti
http://www.edmarmoretti.com.br
Skype: edmar.moretti
gTalk: edmar.moretti

Para tirar dúvidas sobre o i3Geo utilize a lista:
https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo

https://gratipay.com/~edmar.moretti/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] querybyattributes in version 7

2016-10-20 Thread Moen, Paul T.
Try putting brackets around the field and parenthesis around the query string.

$Layer-> querybyattibutes ( "col", "([col] > 0 AND [col] < 100)”)

Paul




From: mapserver-users  on behalf of 
Moretti Edmar 
Date: Wednesday, October 19, 2016 at 9:12 PM
To: MapserverList OSGEO 
Subject: [mapserver-users] querybyattributes in version 7


Hello.

How to make a query using "querybyattributes" and operators such as AND, OR ? 
example:

$Layer-> querybyattibutes ( "col", "col > 0 AND col < 100"). I'm using 
MapScript 7.x. In previous versions it worked, but in version 7 no longer works.

--
___
Edmar Moretti
http://www.edmarmoretti.com.br
Skype: edmar.moretti
gTalk: edmar.moretti

Para tirar dúvidas sobre o i3Geo utilize a lista:
https://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo

https://gratipay.com/~edmar.moretti/


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users