[Mapserver-users] Get the color of a class

Eric Waters ewaters at xmission.com
Wed Mar 17 09:23:50 EST 2004


I'm new, but I was dealing with this yesterday in Perl.

I think you can do it like this:

$Style1 = $Class1->styles;
echo "Class: ".$Style1->outlinecolor;
echo "Class: ".$Style1->color;

Eric Waters


On Wed, Mar 17, 2004 at 10:10:31AM +0100, Irene P?rez wrote:
> I need get the color of a layer, and I've:
> 
> $Class1 = $miLayer->GetClass(0);
> echo "Class: ".$Class1-> name;
> echo "Class: ".$Class1-> template;
> and I obtain the name, the template ...
> ...
> but i need the color:
> 
> echo "Class: ".$Class1->outlinecolor;
> echo "Class: ".$Class1->color;
> appears in blank.
> 
> Thanks.
> 
> 
> 
> 
> ___________________________________________________
> Yahoo! Messenger - Nueva versi?n GRATIS
> Super Webcam, voz, caritas animadas, y m?s...
> http://messenger.yahoo.es
> _______________________________________________
> 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