Ticket #381 (closed enhancement: fixed)
Expose cairo functionality without needing pycairo
| Reported by: | springmeyer | Owned by: | springmeyer |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.7.0 |
| Component: | Boost.Python Binding | Version: | SVN Trunk |
| Severity: | Normal | Keywords: | |
| Cc: | Patch Needs Improvement: | yes | |
| Needs Docmentation: | no | Has Patch?: | yes |
| Design Decision Needed: | no |
Description (last modified by springmeyer) (diff)
The ability to pass Pycairo objects to mapnik is excellent (allows for drawing multiple times to canvas). But difficulty of installation of pycairo and the extra complexity of passing pycairo objects to mapnik rendering and creating cairo contexts/surfaces, highlight the need to be able to write to cairo formats without pycairo using an API as simple as the current method of writing to AGG-based formats.
The attached patch makes it possible to write to cairo formats with only cairo/cairomm installed and using the python api like:
mapnik.render(map,'output.pdf') # extension will be used to select cairo renderer # or mapnik.render(map,'output.png','ARGB32') # keyword will be used to select cairo renderer's PNG output (which can be non-Antialiased)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
