[Mapserver-users] querybyattributes logical expression

AARON KONING aaronkoning at shaw.ca
Wed May 26 02:11:49 EDT 2004


Hi List,

Just wondering if anyone has had success using
querybyattributes with the '>', '<', '>=', '<=' operators? I have been using the 'NOT', 'AND', 'OR',
and '=' operators with success. 

The following statement fails:

    $queryString = "('[AREA]' > '10')"
    $queryItem = 'AREA';
    $map->querybyattributes($queryitem,$queryString,MS_MULTIPLE);

----

<br />
<b>Warning</b>:  [MapServer Error]: msQueryByAttributes(): No matching record(s) foun
d.
 in <b>/var/www/html/igf/code/ri_php/riUMinnMapserverMap_class.php</b> on line <b>103
5</b><br />
<br />
<b>Warning</b>:  [MapServer Error]: msyyparse(): parse error
 in <b>/var/www/html/igf/code/ri_php/riUMinnMapserverMap_class.php</b> on line <b>103
5</b><br />

---

I am using PHP, mapserver-4.0.2, and shapefiles.

thanks,
Aaron




More information about the mapserver-users mailing list