[Mapserver-users] change symbol with mapscipt??

Haiyan Liu hliu at jdbarnes.com
Wed Apr 14 09:34:03 EDT 2004


Hi Armin

How about trying getStyle() from the classObj and then use styleObj's
member function setStyle()?

-Haiyan



On Wed, 2004-04-14 at 09:02, ArminWaespy at web.de wrote:
> hello,
> i tried to change  the SYMBOL with mapscript/php like 
> 
>  if ($HTTP_GET_VARS["geo"] and $HTTP_GET_VARS["relief_schummerung"])
>   {
> 		$aLayer = $map->getlayerbyname(geo);
> 		$myClass = $aLayer->getClass(30);
> 		$myClass->set("SYMBOL", sch_gneis);									
>   }
> 
> but it doesn't work.
> there's an error:
> 
> Fatal error: Property 'SYMBOL' does not exist in this object.
> 
> anyone an idea to change the symbol with mapscript/php??
> 
> thanks
> armin
> _____________________________________________________________________
> Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P!
> Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list