Multiple filtering
krishna S
kris_rock82 at YAHOO.COM
Tue Jan 10 07:12:53 PST 2006
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.
This is how the php script looks like
<?php
dl('php_mapscript_44.dll');
$map_path="C:\ms4w\Apache\htdocs\mapserverdata\map_files\\";
$map = ms_newMapObj($map_path."states.map");
$map->setExtent("-110", "28.5", "-95", "61.5");
$layername = $map->getLayerByName("states");
$layername->setFilter('ND');
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>Example 1: Displaying a map</TITLE>
</HEAD>
<BODY>
<IMG SRC=<?php echo $image_url; ?> >
</BODY>
</HTML>
Thanks for your help .......
More information about the MapServer-users
mailing list