Skip to content
Use OpenStreetMap tiles as basemaps in python / matplotlib
Branch: master
Clone or download
Latest commit 1711497 May 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
notebooks Minimal user agent May 29, 2019
tests Fix tests May 29, 2019
tilemapbase Fix tests May 29, 2019
.gitignore Fix tests May 29, 2019
.travis.yml Bump versions May 29, 2019
LICENSE Setup etc. May 15, 2017
MANIFEST.in To PyPi Aug 18, 2017
README.rst Ready for pypi push May 30, 2019
TODO More ONS support Aug 12, 2017
changes Ready for pypi push May 30, 2019
readme.md Minimal user agent May 29, 2019
requirements.txt Bump versions May 29, 2019
setup.cfg To PyPi Aug 18, 2017
setup.py To PyPi Aug 18, 2017

readme.md

Build Status

TileMapBase

Uses OpenStreetMap tiles, or other tile servers, to produce "basemaps" for use with matplotlib. Uses a SQLite database to cache the tiles, so you can experiment with map production without re-downloading the same tiles. Supports Open Data tiles from the UK Ordnance Survey.

Requirements

Pure python. Uses requests to make HTTP requests for tiles, and pillow for image manipulation.

Install

pip install tilemapbase

or build from source:

python setup.py install

or directly from GitHub:

pip install https://github.com/MatthewDaws/TileMapBase/zipball/master

Example

OpenStreetMap data

OpenStreetMap Data is "© OpenStreetMap contributors”, see http://www.openstreetmap.org/copyright

Please remember that tile set usage is subject to constraints: https://operations.osmfoundation.org/policies/tiles/

Ordnance Survery data

Contains OS data © Crown copyright and database right (2017)

You can’t perform that action at this time.