basemap-data
Data assets for matplotlib basemap
What it is and what it does
basemap-data is a data-only support package that bundles geographic datasets needed by the basemap library. It contains coastline, political boundary, lake, river, and land-sea mask data extracted from the GSHHG dataset (version 2.3.6) via GMT, plus EPSG coordinate reference system definitions. The package itself provides no Python API; instead, it installs data files that basemap consults at runtime to render map projections with geographic features.
This is a pure-data package with zero runtime dependencies, designed to be installed alongside basemap to enable map visualization in matplotlib. It targets scientific and educational users who need to plot data on geographic map projections with accurate coastlines and political boundaries.
Use it for:
- Installing as a dependency when setting up basemap for plotting data on map projections with coastlines
- Providing geographic boundary and coastline data for cartographic visualization in scientific research
- Supporting educational applications that require accurate political and geographic boundaries in matplotlib plots
- Enabling GIS-style map rendering in data analysis workflows that use basemap for geospatial visualization
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides geographic data assets (coastlines, political boundaries, land-sea masks) required by the basemap library to render map projections in matplotlib.
Yes, if you are using basemap for map projections in matplotlib. This is a required data package with no alternatives; install it as a dependency of basemap rather than standalone. Low friction, actively maintained, and free of known vulnerabilities. The copyleft license (LGPL-3.0-or-later on geographic data) is standard for such datasets and poses no practical barrier for most users.
Install
basemap-data on PyPI
pip
pip install basemap-datauv
uv add basemap-datapoetry
poetry add basemap-dataInstalling basemap-data
Before you install
Low install friction with a pure Python wheel distribution. Actively maintained as of 2026-05-04 with stable production status.
License in practice
Dual-licensed under LGPL-3.0-or-later (for GSHHG-derived geographic data) and MIT (for other assets including EPSG data). Copyleft treatment means derivative works must comply with LGPL terms; MIT portions have no such restriction.
Quickstart
pip install basemap-data
# basemap-data provides data files; typical use requires basemap package
# which imports and uses these assets internally
Requires Python 3.9 or later (supports_current); intended as a dependency of basemap rather than direct use
Verify before relying
- Whether basemap itself is installed separately or whether this package can be used standalone
- The exact size and disk footprint of the installed data assets
- Whether the GSHHG version 2.3.6 data is current for typical cartographic use cases
Package facts
| License | LGPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (<4,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 427 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,718/month — #13,132 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: basemap_data-2.0.0-py3-none-any.whl
Keywords: GIS, maps, plots
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
basemapBasemap renders geographic data on matplotlib…
permissive · top 15,000 on PyPI
contextilyContextily retrieves tile-based map imagery…
permissive · top 15,000 on PyPI
CartopyCartopy makes it easy to draw maps for data…
permissive · top 5,000 on PyPI
plotbinPlotBin provides utilities to create and…
unclear · top 15,000 on PyPI
cmoceanProvides perceptually uniform colormaps…
unclear · top 15,000 on PyPI
splotsplot creates static and interactive…
permissive · top 15,000 on PyPI
global-land-maskDetermines whether geographic coordinates…
permissive · top 15,000 on PyPI
cmapcmap provides a collection of scientific…
permissive · top 15,000 on PyPI
matplotlibmatplotlib creates static, animated, and…
permissive · top 1,000 on PyPI
pyprojpyproj provides a Python interface to PROJ,…
permissive · top 1,000 on PyPI