[mapserver-users] querybyattributes in version 7
Moretti Edmar
edmar.moretti at gmail.com
Thu Oct 20 15:18:23 PDT 2016
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. <pmoen at nd.gov>:
> Try putting brackets around the field and parenthesis around the query
> string.
>
>
>
> $Layer-> querybyattibutes ( "col", "([col] > 0 AND [col] < 100)”)
>
>
>
> Paul
>
>
>
>
>
>
> *From: *mapserver-users <mapserver-users-bounces at lists.osgeo.org> on
> behalf of Moretti Edmar <edmar.moretti at gmail.com>
> *Date: *Wednesday, October 19, 2016 at 9:12 PM
> *To: *MapserverList OSGEO <mapserver-users at lists.osgeo.org>
> *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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20161020/fef1450d/attachment.htm>
More information about the MapServer-users
mailing list