[Mapserver-users] Get the color of a class

Lowell Filak lfilak at medinaco.org
Wed Mar 17 09:54:22 EST 2004


Good prognosis - I would add one more step as a colorObj will be
returned and it appears that you are trying to print a readable color
description - $Style1->outlinecolor->red, blue, green, &
$Style1->color->etc...

Lowell

The following message was sent by Eric Waters <ewaters at xmission.com> on
Wed, 17 Mar 2004 07:23:50 -0700.

> 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
> _______________________________________________
> 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