[mapserver-users] Mapscript newby ..

Stephen Woodbridge woodbri at swoodbridge.com
Wed Mar 13 05:49:01 PST 2002


Giorgio,

Your mapserv does not have support for GIF images so you need to make
sure that you map and symbol files does not reference any. I believe the
standard demo.map does.

So ...

you need to change all the GIF references to PNG and convert all the GIF
files to PNG. See:

http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerDemo

for more info.

-Steve W.

Giorgio Volpe wrote:
> 
> I'm tring to use mapscript but i stop at the first step!
> 
> draw() saves an empty file using:
> 
>   #!/usr/bin/perl
>   use mapscript;
>   $map = new mapObj('demo.map') or die('Unable to open mapfile.');
>   $img = $map->draw() or die('Unable to draw map');
>   mapscript::msSaveImage($img, "ex.jpg", 3 , $map->{interlace},
> $map->{transparent}, 95);
> 
> where demo.map is itasca example map.
> Where is the problem? How can i debug this?
> 
> My mapserv -v returns:
>         MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF
> INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE
> 
> Thanks in advance
> 
> --
> 
>     Giorgio
> 
> -----------------------------------------



More information about the MapServer-users mailing list