[Mapserver-users] Select of a element and draw with MapScript

Map Surfers map_surfer@yahoo.com
Wed, 8 Oct 2003 09:35:17 -0700 (PDT)


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@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
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users