[Mapserver-users] Adding Dynamic layers in Mapscript 4.0.1 Perl

WILHITE JASON W jwwilhit at srpnet.com
Wed Mar 31 08:12:30 PST 2004


That was it!  Thank you very much.  Although...It would seem to me that
that attribute should be set to 1 by default when a class gets created.
Apparently a styleObj gets created when you create the class because I
was able to set the styleObj attributes all day long but the numstyles
attribute remains 0.  

Talk about a stealth requirement.

Thanks again.

-Jason

-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of John
Beisley - RSG
Sent: Wednesday, March 31, 2004 1:42 AM
To: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] Adding Dynamic layers in Mapscript 4.0.1
Perl

WILHITE JASON W wrote:

> <>The static members of the map file are showing up just fine but not 
> the dynamic layer. I have a feeling it might be a problem with the 
> color assignments but for the life of me I can't figure it out.
>
> Does anyone have any ideas?
>
> Thank you,
>
> -Jason
>
I think I ran into a similar problem myself. Although I don't recall the

solution, I do remember finding that calling save() on the map object to

save the generated map file to disk was a very useful debugging
solution.

However my own code for setting the style on a line layer that I have 
does something similar to the following: (where $layer is a layerObj)

my $layerClass = new mapscript::classObj($layer);

# ... Set the values inside $layerClass ...

$layerClass->{numstyles} = 1;


- John

-- 
Website: www.pml.ac.uk
Registered Charity No. 1091222
Company No. 4178503
-------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.
If you have received this e-mail in error please do not copy,
disclose it to any third party or use the contents or attachments
in any way. Please notify the sender by replying to this e-mail or
e-mail forinfo at pml.ac.uk and then delete the email without making
any copies or using it in any other way.
       
The content of this message may contain personal views which are
not the views of Plymouth Marine Laboratory unless specifically
stated.
       
Email transmission cannot be guaranteed to be secure or error free

_______________________________________________
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