Version 2 (modified by brucedechant, 15 years ago) ( diff )


MapGuide RFC 40 - Support for using the AGG renderer

This page contains an change request (RFC) for the MapGuide Open Source project. More MapGuide RFCs can be found on the RFCs page.


RFC Template Version(1.0)
Submission Date(Date/Time submitted)
Last ModifiedTom Fukushima Timestamp
AuthorTom Fukushima, Traian Stanev
RFC Statusdraft <proposed, frozen for vote, adopted, retracted, or rejected>
Implementation Statuspending <under development, completed>
Proposed Milestone2.0
Assigned PSC guide(s)(when determined)
Voting History(vote date)


Provide support for using the AGG library to render the map and legend images.


The GD renderer currently used to render the map and legend images works, but there are limitations to it in that the images it generates could be better. For example, when drawing a wide line, even though we have antialiasing turned on staircasing occurs. The AGG library will get us around these limitations.

Proposed Solution

An AGG renderer will be added to the server. When the server starts, it will read the serverconfig.ini file for a "Renderer" setting in the "GeneralProperties" section and:

1) if it is not there, default to the GD renderer

2) if it is set to "AGG" use the AGG renderer

3) otherwise use the GD renderer

The reason that we default to the GD renderer is because the AGG renderer needs to be tested and stabilized before exposing it to general community.

We will be forking the AGG renderer from the version where it was still under a compatible licensing model and storing this version in our subversion repository.


There are no backwards compatibility issues.

Test Plan

We are initially putting it in the product to get some testing done. Also, the unit tests that exist for the GD renderer will be replicated to use the AGG renderer.



Note: See TracWiki for help on using the wiki.