[Mapserver-users] More MapScript 3.7 problems

Daniel Morissette morissette at dmsolutions.ca
Sun Feb 9 16:43:29 PST 2003


"Lars V. Nielsen" wrote:
> 
> However, I still can't seem to get it to output anything but gif. It complains over $map->draw() (saying: Warning: MapServer Error
> in msDrawMap(): Unable to initialize image. in c:\...\map.php on line 308). I've copy'n'paste'd the example in the OutputFormat
> guide, only changing the IMAGETYPE setting to e.g. "jpeg".
> 

Did you change your scripts to call $map->setOutputFormat()?  In 3.6,
you used to pass the output format to the saveImage() call, but in 3.7
you have to call $map->selectOutputFormat("PNG") (or "GIF", "JPEG",
etc.) *before* calling $map->draw().

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the MapServer-users mailing list