[mapserver-users] querybyattributes in version 7

Moen, Paul T. pmoen at nd.gov
Thu Oct 20 13:47:53 PDT 2016


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<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/4867114c/attachment.html>


More information about the mapserver-users mailing list