[Mapserver-users] change symbol with mapscipt??
Yewondwossen Assefa
assefa at dmsolutions.ca
Wed Apr 14 06:31:52 PDT 2004
In mapserver 4.X, symbol related properties are inside the style object
instead of the class object. You should do something like :
$myClass = $aLayer->getClass(30);
$mystyle = $myClass->getstyle(0);
$mystyle->set("symbolname", "sch_gneis");
For more doc. please refer to
http://mapserver.gis.umn.edu/doc40/phpmapscript-class-guide.html
Best Regards,
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
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list