[mapserver-users] AGG Rendering

Gregor at HostGIS gregor at hostgis.com
Fri Apr 3 17:06:57 EDT 2009


Andrew Ayre wrote:
> Now I have SUPPORTS=AGG. Also the error has gone. But the output isn't 
> anti-aliased. Is there something else that I need to add

>> OUTPUTFORMAT
>>   NAME 'AGG_Q'
>>   DRIVER AGG/PNG
>>   IMAGEMODE RGB
>>   FORMATOPTION "QUANTIZE_FORCE=ON"
>>   FORMATOPTION "QUANTIZE_DITHER=OFF"
>>   FORMATOPTION "QUANTIZE_COLORS=256"
>> END

Have you tried removing those formatoption lines? Seems to me that 
forcing it to a 256-color palette will mess with AGG's very careful 
subpixel shading alpha-channel stuff.

The paragraph I use is this.

OUTPUTFORMAT
   NAME "png"
   MIMETYPE "image/png"
   DRIVER "AGG/PNG"
   EXTENSION "png"
   IMAGEMODE RGBA
   TRANSPARENT OFF
END

-- 
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+


More information about the mapserver-users mailing list