[Mapserver-users] setFilter expression error
Nick Petersen-Bergeron
bergeron at zedxinc.com
Mon Aug 18 13:30:46 PDT 2003
I'm trying to run a queryByAttribute on a layer. I've set up the following
filter expression:
$countyLayer->setFilter("('[Name]' = 'leflore')");
searching for the string leflore.
I then run the queryByAttributes;
$countyLayer->queryByAttributes($map,$mapscript::MS_SINGLE);
This produces the following error:
Mon Aug 18 16:17:06 2003 - msyyparse(): Expression parser error. parse error
Mon Aug 18 16:17:06 2003 - msQueryByAttributes(): Search returned no
results. No matching record(s) found.
However, I can't really see anything wrong with my expression. I'm using
mapscript 4.0. Any ideas?
Nick Petersen-Bergeron
System Administrator
ZedX Inc.
369 Rolling Ridge Drive
Bellefonte, PA. 16823
More information about the MapServer-users
mailing list