[mapserver-users] mapscript php with agg rendering?

Pavel Iacovlev iacovlev.pavel at gmail.com
Tue Feb 15 06:53:24 EST 2011


Use the predefined one:

$map->selectOutputFormat('AGGPNG24');

On Tue, Feb 15, 2011 at 1:37 PM, Michael Schulz
<mandschulz at googlemail.com>wrote:

> 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
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110215/abc0b02a/attachment-0001.html


More information about the mapserver-users mailing list