TileMapBase
Use OpenStreetMap tiles as basemaps in python / matplotlib
Install / Use
/learn @MatthewDaws/TileMapBaseREADME
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
- Example - Jupyter notebook showing examples.
- Ordnance Survey - Ordnance survey examples.
- Notebooks - Other examples.
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/
- As of 25/05/2019 OSM requires a user agent for all requests, with a warning "Faking another app’s User-Agent WILL get you blocked." We hence default to using "TileMapBase" as a user agent.
Ordnance Survery data
Contains OS data © Crown copyright and database right (2017)
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
