[mapserver-users] Fatal error: Call to undefined function: querybyattributes()

Daniel Morissette morissette at dmsolutions.ca
Thu Nov 21 11:35:40 EST 2002


David Boggio wrote:
> 
> Thanks a lot, your syntax works perfectly. I had not tried to put the
> field name between quotes, although I thought I had tried everything!
> Isn't there a IN operator ?
> 
> For example : setFilter("('[YOUR_FIELD]' IN
> ('3c84fb819c517','3c691cde3d1a7'))")
> 

You could probably use a REGEX:

- $layer->set("filteritem", "YOUR_FIELD")
- $layer->setFilter("/3c84fb819c517|3c691cde3d1a7/")

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the mapserver-users mailing list