[mapserver-users] mapscript php with agg rendering?
Michael Schulz
mandschulz at googlemail.com
Tue Feb 15 03:37:37 PST 2011
Hi mapservers,
I have a question regarding the AGG rendering when creating a map
completly from php-mapscript. In the script I (think I) am setting all
the required parameters for the map to be rendered with AGG using
24bit:
$oMap=ms_newMapObjFromString("MAP END");
...
$oMap->outputformat->set('name','png');
$oMap->outputformat->set('driver','AGG/PNG');
$oMap->outputformat->set('mimetype','image/png');
$oMap->outputformat->set('imagemode',MS_IMAGEMODE_RGBA);
$oMap->outputformat->set('extension','png');
$oMap->outputformat->set('transparent',MS_TRUE);
I've experienced for some time with the following directive, trying to
actually invoke the correct outputformat
$oMap->selectoutputformat("png");
But to no avail. The maps that derive from this script clearly use the
GD driver. When I saved the generated map-file to the filesystem I
found the following line in the map section:
IMAGETYPE gif
I am using MapServer, Mapscript 5.6.6., PHP 5.3.3 on OpenSuse 11.3
Maybe someone could share some mapscript code or has some hints how to
actually return AGG rendered maps.
Thanks, Michael
--
-----------------------------------------------------------
Michael Schulz
More information about the MapServer-users
mailing list