[ka-Map-users] Ka-map and AGG?
Sacha Black
sacha.black at gmail.com
Mon Mar 3 12:08:35 EST 2008
Hans,
The corrections I made for Lorenzo are only typos.....
check to see if your OUTPUFORMAT settings are like this (or else they
will not match the settings in config.php):
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGB
END
OUTPUTFORMAT
NAME 'AGGA'
DRIVER AGG/PNG
IMAGEMODE RGBA
END
OUTPUTFORMAT
NAME 'AGG_JPEG'
DRIVER AGG/JPEG
IMAGEMODE RGB
END
Sacha
On Mon, Mar 3, 2008 at 12:51 AM, Hans Castorp <hanscastorp76 at yahoo.es> wrote:
> Making these 2 changes, my map looses transparency and all layers are drawn
> with black background...
>
>
> -----Mensaje original-----
> De: ka-map-users-bounces at lists.maptools.org
> [mailto:ka-map-users-bounces at lists.maptools.org] En nombre de Lorenzo Becchi
> Enviado el: viernes, 29 de febrero de 2008 22:54
> Para: Sacha Black
> CC: ka-map-users at lists.maptools.org
> Asunto: Re: [ka-Map-users] Ka-map and AGG?
>
>
>
> 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
> >>
> >>
> >>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 02/03/2008
> 15:59
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.3/1307 - Release Date: 02/03/2008
> 15:59
>
>
>
>
More information about the ka-Map-users
mailing list