[mapserver-users] FILTER and MapScript
Guillaume SUEUR
guillaume.sueur at khi2.fr
Thu Nov 7 03:20:12 PST 2002
Hi there,
I can't get throught setting a filter using MapScript in spite of the
examples on the list archive.
No filter nor Filteritem are set in the MapFile.
the code is :
$poLayer->setFilter("([$field]".$operator." '".$value."')");
where operator can be < > <= >= <> or =
$field the dbf field to compare the value with
$value the value of the filter
after execution of this code, all objects of the layer disappear.
The filter looks a bit strong !
--
---------------------------
Guillaume SUEUR
Ingénieur développement SIG
GEOSIGNAL
25bis Avenue Marcel Dassault
31505 TOULOUSE CEDEX 5
----------------------------
More information about the MapServer-users
mailing list