Re: [OSM-talk] Printed map books

2012-02-23 Thread Graham Jones
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  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"  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

2012-02-23 Thread Paul Norman
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  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"  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


[OSM-talk] HaptoRender and Maker Faire

2012-02-23 Thread Dr. Thomas Bremer
Hi folks,

you know HaptoRender? The OpenStreetMap project targeting tactile maps for
blind and visually impaired? There is a wiki
page.
For a few weeks I am the owner of a MakerBot Thing-O-Matic 3D printer and
working on a 3D printer driver taking OSM as input which is a non-trivial
task. We haven't even defined rendering rules - but we are on the way.
Lulu-Ann has recently started a talk
pageto
discuss rendering issues. Recently I have successfully produced the
first prototile. No, I won't post photos yet. It's not really impressive.
But I am confident to print some decentstuff in a few days.

To promote motivation I will set a deadline. On weekend May 19 and 20 there
will be Maker Faire Bay Area at San Mateo (CA). Plan is to show HaptoRender
maps there and give a talk about it. That's why I am writing this. I am not
planning to stay at the exhibit all the time and use my little
John...
If anybody else wants to join me at the exhibition for HaptoRender or any
other own OpenStreetMap project or OpenStreetMap in general please stand up
and report to me! I consider Maker Faire as extremely valuable presentation
place. And actually, it should be fun to be there anyway.

Looking forward to your reply
Thomas AKA virtuPIC
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk


[OSM-talk] Map Co-ordinates for towns, etc in UK

2012-02-23 Thread mick
I hope this isn't off-topic, if so I apologise.

Can some one advise me of the official policy for locating the centre of towns 
in the UK, i.e. the spot on the map for a point representing the town and used 
as the Zero Point for measuring distances to other towns.

In Australia this was taken as the centre of the road and the middle of the 
plot of land occupied by Post Office and marked by a triangular concrete mile 
post painted white with black characters about 1 metre high with a bevelled 
top. the vertical faces visibly from the road indicated the distance to the 
next town in the direction of travel. The upper face on the '0' post showed the 
distance to the state capital.

I was told this by a NSW Dept of Main Roads Clerk of Works about 1973. 

When the roads went metric in 1976 these posts rapidly disappeared, replaced by 
"International Standard" metal posts with green shields marking the 5 KM 
intervals but with no 'Zero Post'. A few towns kept their Zero Posts and moved 
them to a park.

mick

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


Re: [OSM-talk] Map Co-ordinates for towns, etc in UK

2012-02-23 Thread kenneth gonsalves
On Fri, 2012-02-24 at 11:14 +1000, mick wrote:
> Can some one advise me of the official policy for locating the centre
> of towns in the UK, i.e. the spot on the map for a point representing
> the town and used as the Zero Point for measuring distances to other
> towns.

in India it is usually the head post office.
-- 
regards
Kenneth Gonsalves


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