pyguymer3.openstreetmap.res

pyguymer3.openstreetmap.res(lat_deg, zoom, /, *, scale=1)[source]

Calculate the resolution in the centre of a tile at a given latitude and for a given zoom.

Parameters:
  • lat_deg (float) – the latitude (in degrees)

  • zoom (int) – the zoom

  • scale (int, optional) – the scale of the tile

Returns:

resOfEarth – the resolution (in metres/pixel)

Return type:

float

Notes

OpenStreetMap have tabulated a few values .

Copyright 2017 Thomas Guymer [1]

References