[mapserver-users] PERL MapScript
Stephen Woodbridge
woodbri at swoodbridge.com
Tue May 19 18:32:28 PDT 2009
Did you try:
print mapObj->{name}."\n";
-Steve W
Kralidis,Tom [Ontario] wrote:
> I get the same error when running mapObj->get("name"). I don't see
> any get() method in mapObj. From my example, you should see a
> out2.xml file written to disk.
>
> ..Tom
>
>
>
> -----Original Message----- From: Christopher Condit
> [mailto:condit at sdsc.edu] Sent: Tue 19-May-09 19:45 To: Kralidis,Tom
> [Ontario]; mapserver-users at lists.osgeo.org Subject: RE:
> [mapserver-users] PERL MapScript
>
> Hi Tom-
>> What does your code look like? The following works for me:
> #!/usr/bin/perl use mapscript; use strict;
>
> my $map = new mapscript::mapObj("test.map") or die "no map $!"; my
> $name = $map->get("name"); print $name;
>
>> #!/usr/bin/perl
>>
>> use strict; use warnings; use mapscript;
>>
>> my $map = new mapscript::mapObj('test.map');
>> $map->saveMapContext('out2.xml');
>
> I also tried running your code. It doesn't generate an error but no
> test.xml file is created...
>
> Any thoughts? Thanks, -Chris
>
>
>
> _______________________________________________ mapserver-users
> mailing list mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list