[ms4w-users] php mapscript to set a filter
Jeff McKenna
jmckenna at dmsolutions.ca
Wed Jan 11 12:09:11 EST 2006
I'm not a mapscript developer, but i would recommend using a FILTER with
a regular or logical expression (see
http://mapserver.gis.umn.edu/docs/howto/msexpressions).
jeff
kris rock wrote:
> Hi i have a question about setting a filter in a php script, i am able
> to set the filter to display a single state but how can i display multiple
> states at the same time.
>
> $layername = $map->getLayerByName("states");
> $layername->set("filteritem","state");
> $layername->setFilter("SD");
>
> This is how iam able to set the filter for a single state, but if i want
> to display multiple states then what should i do.
>
> Any suggestions are highly appreciated .....
>
> Bye
>
--
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the ms4w-users
mailing list