cartograph.projection¶
- cartograph.projection.mercator(lat, lon)¶
- cartograph.projection.inverse_mercator(x, y)¶
Inverse Mercator projection
- cartograph.projection.deg2num(lat_deg, lon_deg, zoom)¶
Return the OpenStreetMap tile that contains the given lat/lon point. The function is copied from the OpenStreetMap wiki but uses numpy rather than the builtin math library.
- cartograph.projection.num2deg(xtile, ytile, zoom)¶
Return the lat/lon coordinates of the top left (NW) corner of the OpenStreetMap tile. The function is copied from the OpenStreetMap wiki but uses numpy rather than the builtin math library.