[Mapserver-users] Adding Dynamic layers in Mapscript 4.0.1 Perl
Sean Gillies
sgillies at frii.com
Wed Mar 31 08:56:59 PST 2004
Jason,
Will you enter this stealth requirement as a SWIG mapscript bug in
Bugzilla
and add me (sgillies at frii.com) to the CC list? I'll see what can be
done
about it.
Heads up: there are going to be new styleObj features in future
releases.
See http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=548.
cheers,
Sean
Il giorno 31/mar/04, alle 09:12, WILHITE JASON W ha scritto:
> 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
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies
More information about the MapServer-users
mailing list