[ka-Map-users] Ka-map and AGG?

Lorenzo Becchi lorenzo at ominiverdi.com
Fri Feb 29 16:53:54 EST 2008


lovely, thanks
:-)

I've updated CVS

Lorenzo




Sacha Black wrote:
> Hi Lorenzo,
>
> I've tested what you sent, and there are two corrections (see the
> ////// comments below):
>
> case "AGGA":
>   $GLOBALS['szMapImageFormat'] = 'AGGA';
>   $GLOBALS['szMapImageCreateFunction'] = "imagecreatefrompng";
>   $GLOBALS['szImageExtension'] = '.png';
>   $GLOBALS['szImageCreateFunction'] = "imagecreatetruecolor";    /////
> <-- not 'imagecreate'
>   $GLOBALS['szImageOutputFunction'] = "imagepng";
>   $GLOBALS['szImageHeader'] = 'image/png';
> break;
>
> case "AGG_JPEG":
>   $GLOBALS['szMapImageFormat'] = 'JPEG';
>   $GLOBALS['szMapImageCreateFunction'] = "imagecreatefromjpeg";
>   $GLOBALS['szImageExtension'] = '.jpg';
>   $GLOBALS['szImageCreateFunction'] = "imagecreatetruecolor";
>   $GLOBALS['szImageOutputFunction'] = "imagejpeg";   ///// <-- not 'imagejpg'
>   $GLOBALS['szImageHeader'] = 'image/jpeg';
> break;
>
> With these 2 corrections, everything works as expected.
>
> thanks,
>
> Sacha
>
>
> On Sun, Feb 24, 2008 at 1:07 PM, Lorenzo Becchi <lorenzo at ominiverdi.com> wrote:
>
>   
>> Hi Sasha,
>>  it seems to me it should work.
>>
>>  I've set the outputformats as suggested by this page:
>>  http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics
>>
>>  then I've set LAYER's METADATA
>>     imageformat "AGGA"
>>
>>  seems to me, it didn't worked until I've not changed config.php with
>>  this lines:
>>
>>         case "AGG":
>>             $GLOBALS['szMapImageFormat'] = 'PNG';
>>             $GLOBALS['szMapImageCreateFunction'] = "imagecreatefrompng";
>>             $GLOBALS['szImageExtension'] = '.png';
>>             $GLOBALS['szImageCreateFunction'] = "imagecreate";
>>             $GLOBALS['szImageOutputFunction'] = "imagepng";
>>             $GLOBALS['szImageHeader'] = 'image/png';
>>             break;
>>         case "AGGA":
>>             $GLOBALS['szMapImageFormat'] = 'AGGA';
>>             $GLOBALS['szMapImageCreateFunction'] = "imagecreatefrompng";
>>             $GLOBALS['szImageExtension'] = '.png';
>>             $GLOBALS['szImageCreateFunction'] = "imagecreate";
>>             $GLOBALS['szImageOutputFunction'] = "imagepng";
>>             $GLOBALS['szImageHeader'] = 'image/png';
>>             break;
>>         case "AGG_JPEG":
>>             $GLOBALS['szMapImageFormat'] = 'JPEG';
>>             $GLOBALS['szMapImageCreateFunction'] = "imagecreatefromjpeg";
>>             $GLOBALS['szImageExtension'] = '.jpg';
>>             $GLOBALS['szImageCreateFunction'] = "imagecreatetruecolor";
>>             $GLOBALS['szImageOutputFunction'] = "imagejpg";
>>             $GLOBALS['szImageHeader'] = 'image/jpeg';
>>             break;
>>
>>
>>  I've tested only
>>  AGGA
>>
>>  can you please do some more tests?
>>
>>  once confirmed I'll post changes on CVS
>>
>>  thanks
>>  Lorenzo
>>
>>
>>     


More information about the ka-Map-users mailing list