and a few other examples:

http://mapnik-utils.googlecode.com/svn/sandbox/testing/cairo_contexts/render_to_context.py
http://mapnik-utils.googlecode.com/svn/example_code/cairo_renderer/

- dane


On Jan 21, 2011, at 2:59 PM, Graham Jones wrote:

> Another alternative is to generate the raster image using mapnik and the 
> ReportLabs library to produce a PDF (I think pdf to Postscript is an easy 
> conversion).   This is what I did with townguide 
> (http://code.google.com/p/townguide).   ReportLabs is nice if you want to add 
> a lot of text or other things because you can set a page layout and let the 
> text etc. 'flow' around your layout without you having to think about page 
> and cloumn breaks.  I think maposmatic uses a different way of converting to 
> PDF which does not have such flexibility, but manages to produce higher 
> resolution output.
> 
> Graham.
> 
> On 21 January 2011 19:00, Jon Burgess <[email protected]> wrote:
> On Fri, 2011-01-21 at 10:47 -0800, fiskz wrote:
> > Thanks I will look into pycairo. I'm hoping to render the whole canvas
> > (including map) in postscript, with some of the postscript optional content
> > embedded before distilling.
> 
> Try looking at what they do over at http://maposmatic.org/
> This uses Mapnik with a set of open source tools. I don't know if they
> use the Mapnik vector output or embed a raster image into the PDF.
> 
>    Jon
> 
> 
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
> 
> 
> 
> -- 
> Graham Jones
> Hartlepool, UK.
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to