topojson - a powerful library to encode geographic data as topology in Python!🌍
Maintained. Last release 7 weeks ago, commits in 3 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install topojsontopojson
Encode spatial data as topology in Python!
Topojson is a library that is capable of creating a topojson encoded format of nearly any spatial object in Python.
With topojson it is possible to reduce the size of your spatial data. Mostly by orders of magnitude. It is able to do so through:
- Eliminating redundancy through computation of a topology
- Fixed-precision integer encoding of coordinates and
- Simplification and quantization of arcs
See Topojson Documentation Site for all info how to use this package.
Usage
The package can be used in multiple different ways, with the main purpose to create a TopoJSON topology.
See the Python Topojson Documentation Site for all info or this Notebook with some examples, such as the following:
Click on the image to go the Notebook Viewer with code-snippets how these images are created or visit the Topojson Documentation Site.
Installation
Topojson is available on PyPI and conda-forge:
pip install topojson
In a project managed with uv:
