[mapserver-users] PERL MapScript
Christopher Condit
condit at sdsc.edu
Tue May 19 16:45:27 PDT 2009
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
More information about the MapServer-users
mailing list