{"comment":{"created_at":"2011-10-11T07:52:27Z","body":"[springmeyer] looks like I added this to trunk in r1546 and forgot to close.","updated_at":"2011-10-11T07:52:27Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/comments/2357598","id":2357598,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"}},"action":"created","issue":{"number":379,"created_at":"2011-10-11T07:52:24Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"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.\r\n\r\nThe attached patch makes it possible to write to cairo formats with only cairo/cairomm installed and using the python api like:\r\n\r\n{{{\r\nmapnik.render(map,'output.pdf') # extension will be used to select cairo renderer\r\n# or\r\nmapnik.render(map,'output.png','ARGB32') # keyword will be used to select cairo renderer's PNG output (which can be non-Antialiased)\r\n}}}","comments":5,"title":"Expose cairo functionality without needing pycairo","updated_at":"2011-10-11T07:52:27Z","url":"https://api.github.com/repos/mapnik-org/mapnik/issues/379","id":1871964,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/941f68386168a8a6b60f2529a7830af7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/artemp","id":59056,"login":"artemp"},"html_url":"https://github.com/mapnik-org/mapnik/issues/379","labels":[{"name":"Boost_Python_Binding","url":"https://api.github.com/repos/mapnik-org/mapnik/labels/Boost_Python_Binding","color":"FFFFFF"}],"state":"open"},"legacy":{"issue_id":1871964,"comment_id":2357598}}