[OSM-dev] Units in the Mapnik .xml file?

Ulf Lamping ulf.lamping at web.de
Thu Nov 1 13:59:59 GMT 2007


Tom Hughes schrieb:
> Anyway, the answer is that they are more or less what you expect, if
> you know what DPI mapnik is assuming. I actually did all the maths to
> work it out - see the attached spreadsheet.
>
> In summary though, this is what I came up with:
>
>     Zoom    Scale           Min Scale       Max Scale
>
>     1       279399417       200000000       500000000
>     2       139699708       100000000       200000000
>     3       69849854        50000000        100000000
>     4       34924927        25000000        50000000
>     5       17462464        12500000        25000000
>     6       8731232         6500000         12500000
>     7       4365616         3000000         6500000
>     8       2182808         1500000         3000000
>     9       1091404         750000          1500000
>     10      545702          400000          750000
>     11      272851          200000          400000
>     12      136425          100000          200000
>     13      68213           50000           100000
>     14      34106           25000           50000
>     15      17053           12500           25000
>     16      8527            5000            12500
>     17      4263            2500            5000
>     18      2132            1000            2500
>
> That shows the scale for each zoom, along with the values I normally
> use for min/max scale if I want to match a particular zoom level.
>   
Beside of what the whole discussion might result in ...

This seems to be a frequent question.

Would it be a good idea to put this table as a comment into the xml files?

Regards, ULFL




More information about the dev mailing list