Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Export scale does not match exported file #4681

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Export scale does not match exported file #4681

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: bubaya
[Submitted to the original trac issue database at 6.55pm, Friday, 9th November 2012]

Given the following example: [http://parent.tile.openstreetmap.org/cgi-bin/export?bbox=5.0,50.0,5.1,50.016666&scale=10500&format=pdf]

This map extract is 1' lat high, this is 1852m. The scale is 1:10500. Hence, the exported pdf should be 17,64cm high. In fact, it is 34,6cm high; that means a scale of 1:5353.

The same problem if I export images: When I export the same area as a PNG image, the image is 981px high, and has a resolution of 72ppi. That means a height of 34,6cm, the same as the PDF. To match the 1:10500 scale, the image would have to have a resolution of 141.3ppi. If I play around, I do not get a constant resolution that would match the scale, but always value between 140 and 145ppi.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 12.37pm, Sunday, 11th November 2012]

We are entirely dependant on mapnik here, so any issue will be with mapnik and not with us.

IIRC mapnik works to 96dpi so that is what I would expect the scale to be based on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant