[Mapserver-users] MapScript, help starting? (continued)

Lowell Filak lfilak at medinaco.org
Mon Mar 3 15:57:46 EST 2003


It doesn't sound like the mapserv executable you are using was compiled at the same time the mapscript.pm your using was.
What version of maserver are you using and what does mapserv -v show?
Lowell F.

The following message was sent by Junkmail Box <junkmail at deathkeep.com> on Mon, 3 Mar 2003 12:23:17 -0800 (PST).

> 
> 
> I'm still having no luck getting mapscript to draw anything. My script is
> simply this:
> 
> 
> #!/usr/bin/perl -w
> use strict;
> use mapscript;
> 
> $ENV{MS_ERRORFILE} = "/usr/local/mapserv/htdocs/arcata/foo.log";
> 
> my $map = new mapObj('/usr/local/mapserv/htdocs/arcata/arcata.map') or
> die('Unable to open mapfile.');
> my $img = $map->draw() or die('Unable to draw map');
> my $void = $img->saveImage('/usr/local/mapserv/htdocs/arcata/example.png',
> $mapscript::MS_PNG, $map->{transparent}, $map->{interlace}, 0);
> 
> 
> The error log is reporting this:
> 
> Mon Mar  3 11:49:44 2003 - msSearchDiskTree(): Unable to access file.
> Mon Mar  3 11:49:44 2003 - msSaveImage(): General error message. PNG
> output is not available.
> 
> The first message, I gather from the mailing list archive, is a missing
> spatial index file and isn't terribly important. The second message seems
> to be the nasty one. If I change it to example.jpg and
> $mapscript::MS_JPEG, I get "JPEG output is not available"
> 
> Any ideas what could be causing JPEG output to not work? The strange thing
> is that the mapserv CGI program works perfectly with PNG and JPEG output
> using the arcata.map file.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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