Article about MapServer 5.0

Steve Lime Steve.Lime at DNR.STATE.MN.US
Tue Aug 28 10:40:08 EDT 2007


Note that there are two pre-defined output formats for AGG: AGGPNG24 and AGGJPEG. So it's
as simple as "IMAGETYPE AGGPNG24" now.

Steve

>>> On 8/28/2007 at 4:58 AM, in message <46D3F1AF.1070603 at mapgears.com>, Daniel
Morissette <dmorissette at MAPGEARS.COM> wrote:
> Thomas,
> 
> When I first used AGG it was not obvious how to setup the outputformat. 
> It would probably be a good idea to add those outputformat infos to your 
> http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics page.
> 
> Daniel
> 
> 
> thomas bonfort wrote:
>> 
>>     Another question, I tested the new outputformat with AGG, is it
>>     possible
>>     to get jpg or gif image with it? If so, how can I setting up my mapfile
>>     to realize this? Do I need special flag when building mapserver?
>> 
>> 
>>  gif isn't supported with agg.
>> these are the main outputformats you can use with agg:
>> 
>> base outputformat, will output a 24 bit png:
>> OUTPUTFORMAT
>>   NAME 'AGG'
>>   DRIVER AGG/PNG
>>   IMAGEMODE RGB
>> END
>> 
>> 24 bit png, rendered on a transparent background:
>> OUTPUTFORMAT
>>   NAME 'AGGA'
>>   DRIVER AGG/PNG
>>   IMAGEMODE RGBA
>> END
>> 
>> 24 bit jpeg output:
>> OUTPUTFORMAT
>>     NAME 'AGG_JPEG'
>>     DRIVER AGG/JPEG IMAGEMODE RGB
>> END
>> 
>> png output, with number of colors reduced with quantization:
>> OUTPUTFORMAT
>>   NAME 'AGG_Q'
>>   DRIVER AGG/PNG
>>   IMAGEMODE RGB
>>   FORMATOPTION "QUANTIZE_FORCE=ON"
>>   FORMATOPTION "QUANTIZE_DITHER=OFF"
>>   FORMATOPTION "QUANTIZE_COLORS=256"
>> END
>> 
>> 
>> 
>> as for building, it will depend on your platform, but generally speaking 
>> you'll run
>> 
>> ./configure [...] --with-agg=/usr [...] if you're using a distro build 
>> of agg
>> 
>> or
>> 
>> ./configure [...] --with-agg=/path/to/agg-source [...] if you're using a 
>> downloaded version from antigrain.com <http://antigrain.com> (you'll 
>> have to build agg in the source directory before doing this. just 
>> running 'make' should be enough)
>> 
>> happy to answer other questions if any (en francais aussi, si c'est plus 
>> facile)
>> 
>> thomas
>> 
>> 
> 



More information about the mapserver-users mailing list