format() was added in Python 2.6. I'm running 2.7.2.

 

I'm contemplating switching from having mapnik render to a cairo PDFSurface
to rendering to an image with AGG and placing that in the surface. The PDFs
that are generated are exceedingly complex and this poses problems when
printing.

 

It's good to hear that it works for someone else.

 

 

 

From: Graham Jones [mailto:grahamjones...@gmail.com] 
Sent: Thursday, February 23, 2012 12:38 PM
To: Paul Norman
Cc: Steve Bennett; talk@openstreetmap.org
Subject: Re: RE: [OSM-talk] Printed map books

 

Hi Paul,

This is very good.   I had to convert the print 'xxxxx'.format() statements
into the ' %d ' % (xxx) format to get it to run on my computer (not sure if
that is a python version issue), but it is producing nice clear paginated
output.

 

Thanks


Graham.

On 22 February 2012 03:38, Paul Norman <penor...@mac.com> wrote:

I've thrown something together in python. It uses mapnik for rendering the
maps and cairo for page layout. It's on github at
https://github.com/pnorman/mapbook but it's very much in a development
stage. 

I intend to add 

-          Arrows at the edges, indicating what page to go if you want to
look in that direction

-          An index page at the front

-          The ability to skip maps

 

From: Graham Jones [mailto:grahamjones...@gmail.com] 
Sent: Sunday, February 19, 2012 2:50 AM
To: Paul Norman
Cc: Steve Bennett; talk@openstreetmap.org
Subject: Re: RE: [OSM-talk] Printed map books

 

My townguide python script does that - it uses a library to put the mapnik
generated images onto pdf pages along with other text.

from my phone

On 19 Feb 2012 09:37, "Paul Norman" <penor...@mac.com> wrote:

Pdfatlas appears to use a custom rendering language, and I'd rather avoid
that. It also hasn't been updated in 5 years.

 

What I'm considering writing is a set of python scripts that build the map
with mapnik and then piece the pages together. Do you think inkscape is the
easiest way to build the PDFs from the command line?

 

 

From: Graham Jones [mailto:grahamjones...@gmail.com] 
Sent: Sunday, February 19, 2012 1:08 AM
To: Steve Bennett
Cc: Paul Norman; talk@openstreetmap.org
Subject: Re: [OSM-talk] Printed map books



 

Hi,

The two 'townguide' ones are mine, but the demonstration web service at
townguide.webhop.n...





 

-- 
Graham Jones

Hartlepool, UK.

 

_______________________________________________
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk

Reply via email to