Ok - something else missing

Krung Saengpole saengpole at YAHOO.COM
Fri Nov 26 16:30:46 EST 2004


Joseph,

If I'm not wrong, the following style has been changed since 4.0. But I didn't use perl mapscript for a long time, so please re-check in the 3rd line's syntax. (actually I use PHPMapscript and translate it to perl for you)

my $class = new mapscript::classObj($layerObj);
my $style=new mapscript::styleObj($class);
$style->{color}->setRGB(10,0,255);


HTH
Krung.


Joseph Norris <sirronj at PACBELL.NET> wrote:
I am building a class via perl - I have the expression part set up but the
color deal is giving me a problem:

my $class = new mapscript::classObj($layerObj);
$class->setExpression("/$zip_expression/");
$class->{color} = '102 0 255';

I know I am not doing this right because I am getting the following error:

Can't locate auto/mapscript/classObj/swig_color_.al

Help - thanks.


#Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr
$_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-
68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90);


---------------------------------
Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041126/5780378c/attachment.html


More information about the mapserver-users mailing list