[Mapserver-users] More MapScript 3.7 problems
Daniel Morissette
morissette@dmsolutions.ca
Sun, 09 Feb 2003 19:43:29 -0500
"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@dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users