Re: [OSM-talk] Printed map books
Howdy all. Good to see the PdfAtlas idea being revived (especially now that rendering libraries have improved!) -- if any of its ideas are still relevant then the original author might still be around to thank you for your efforts to get this ideal working! ;) [yes the software itself will be pretty outdated at the moment] On 19 February 2012 09:36, 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. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
Hi Paul, This is very good. I had to convert the print 'x'.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
Re: [OSM-talk] Printed map books
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 'x'.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
Re: [OSM-talk] Printed map books
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... ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
You might also want to look at some of the newer 'map book' plugins for Quantum GIS. David. On Tue, Feb 21, 2012 at 9:38 PM, 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... ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
Great! I will have a go with it when I get back home. Graham from my phone On 22 Feb 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 ont... ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
[OSM-talk] Printed map books
In my car I still use a printed map book, which I'd like to replace with one using OSM data and was wondering if anyone had any suggestions. The features I consider requirements are - Tiled pages with an index map at the front of the book - Arrows on each page indicating the number of the adjacent pages I'd also like - A street index at the back, indicating the street, city, map page and map grid I've looked at the wiki, but all of the programs I saw used osmarender ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
I had vaguely considered this as something that could be done with OpenStreetPad. It ought to be pretty easy with its rendering architecture to get OS X to output a PDF document instead of some pretty images on the screen. If you're able to hack on an obj-c project then it could be a good route. Bob if (*ra4 != 0xffc78948) { return false; } On 19 Feb 2012, at 08:10, Paul Norman wrote: In my car I still use a printed map book, which I'd like to replace with one using OSM data and was wondering if anyone had any suggestions. The features I consider requirements are - Tiled pages with an index map at the front of the book - Arrows on each page indicating the number of the adjacent pages I'd also like - A street index at the back, indicating the street, city, map page and map grid I've looked at the wiki, but all of the programs I saw used osmarender ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
Hi Paul, I asked about this a while ago on the thread Generating a street directory from OSM? and got some good answers. Some relevant links that came up: http://code.google.com/p/townguide http://www.townguide.webhop.net/ http://www.maposmatic.org Steve On Sun, Feb 19, 2012 at 7:10 PM, Paul Norman penor...@mac.com wrote: In my car I still use a printed map book, which I'd like to replace with one using OSM data and was wondering if anyone had any suggestions. The features I consider requirements are - Tiled pages with an index map at the front of the book - Arrows on each page indicating the number of the adjacent pages I'd also like - A street index at the back, indicating the street, city, map page and map grid I've looked at the wiki, but all of the programs I saw used osmarender ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
Hi, The two 'townguide' ones are mine, but the demonstration web service at townguide.webhop.net is not working, sorry (had a little disk crash a year ago, and never quite got around to putting it back together...) Getting a nice printable booklet working has been on my todo list for ages - there is a rough implementation of it in the townguide code, but that is really a proof of concept rather than a finished work.I must admit to not developing townguide recently, but if there is demand for this, I will have a go at getting a booklet implementation workingyou will have to give me a few weeks though, but the code is all open source, so if you would like to work on it, I can explain how it works. I think there is another option called pdfatlas - This is aiming to do something similar, but I failed to get it working when I tried - can't remember why though - worth searching on the OSM wiki for it. Regards Graham. On 19 February 2012 08:55, Steve Bennett stevag...@gmail.com wrote: Hi Paul, I asked about this a while ago on the thread Generating a street directory from OSM? and got some good answers. Some relevant links that came up: http://code.google.com/p/townguide http://www.townguide.webhop.net/ http://www.maposmatic.org Steve On Sun, Feb 19, 2012 at 7:10 PM, Paul Norman penor...@mac.com wrote: In my car I still use a printed map book, which I'd like to replace with one using OSM data and was wondering if anyone had any suggestions. The features I consider requirements are - Tiled pages with an index map at the front of the book - Arrows on each page indicating the number of the adjacent pages I'd also like - A street index at the back, indicating the street, city, map page and map grid I've looked at the wiki, but all of the programs I saw used osmarender ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk -- Graham Jones Hartlepool, UK. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
Hi, I tried to use Hikingbook.pl[0] by Gary68, but I wasn't successful (I wanted to use it together with his next project, Mapweaver) I saw also Osmbook[1] but was limited in rendering. Regards, Stefano [0] http://wiki.openstreetmap.org/wiki/Hikingbook.pl [1]http://wiki.openstreetmap.org/wiki/Osmbook ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Printed map books
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.net is not working, sorry (had a little disk crash a year ago, and never quite got around to putting it back together...) Getting a nice printable booklet working has been on my todo list for ages - there is a rough implementation of it in the townguide code, but that is really a proof of concept rather than a finished work.I must admit to not developing townguide recently, but if there is demand for this, I will have a go at getting a booklet implementation workingyou will have to give me a few weeks though, but the code is all open source, so if you would like to work on it, I can explain how it works. I think there is another option called pdfatlas - This is aiming to do something similar, but I failed to get it working when I tried - can't remember why though - worth searching on the OSM wiki for it. Regards Graham. On 19 February 2012 08:55, Steve Bennett stevag...@gmail.com wrote: Hi Paul, I asked about this a while ago on the thread Generating a street directory from OSM? and got some good answers. Some relevant links that came up: http://code.google.com/p/townguide http://www.townguide.webhop.net/ http://www.maposmatic.org Steve On Sun, Feb 19, 2012 at 7:10 PM, Paul Norman penor...@mac.com wrote: In my car I still use a printed map book, which I'd like to replace with one using OSM data and was wondering if anyone had any suggestions. The features I consider requirements are - Tiled pages with an index map at the front of the book - Arrows on each page indicating the number of the adjacent pages I'd also like - A street index at the back, indicating the street, city, map page and map grid I've looked at the wiki, but all of the programs I saw used osmarender ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk -- Graham Jones Hartlepool, UK. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
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... ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk