[Mapserver-users] Select of a element and draw with MapScript
Map Surfers
map_surfer at yahoo.com
Wed Oct 8 09:35:17 PDT 2003
Mr. Rojas
Here is an example for mapserver 4.0. The parameters
for querybyattribute are different for 3.6 and below
(refer to PHP/Mapscript README).
$name = $http_form_vars["name"];//set up user input
variable
$oMap =
ms_newMapObj("d:\dondeEstaTuMapa\tuMapa.map");//set
your map object
$oLayer = $oMap->getLayerbyName("yourlayer");
if ($oLayer->queryByAttributes("Name", $name,
MS_SINGLE) == MS_SUCCESS){
$image = $oMap->drawQuery();
$image_url=$image->saveWebImage(MS_GIF,1,1,0);
}
Hope this helps,
Damian
--- Wilman Rojas <wilmanrojas at geoweb.com.co> wrote:
> Hi.
>
> I need select a element in the map. But whit a
> attribute and de draw the
> map with element select.
> How realize this?
>
>
> Wilman Rojas.
> Jefe Investigación y Desarrollo.
> Geoweb S.A
> www.geoweb.com.co
>
>
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
More information about the MapServer-users
mailing list