Skip to main content

Use OpenStreetMap tiles as basemaps in python / matplotlib

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tilemapbase-0.4.7.tar.gz (25.1 kB view details)

Uploaded Source

File details

Details for the file tilemapbase-0.4.7.tar.gz.

File metadata

  • Download URL: tilemapbase-0.4.7.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for tilemapbase-0.4.7.tar.gz
Algorithm Hash digest
SHA256 6db0f28f77c5fdb42557e17bb87914aafe08a90f602953d5cc07fb5a1caac7f6
MD5 64fd0fb7d89ad4c79beff75f150902f8
BLAKE2b-256 c3870e9feb1c0aa992aab72817116e1e4d2e02c0177261022b93bb53be076416

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page