Skip to main content

topojson

PyPI version License github actions Conda version

Encode spatial data as topology in Python!

Topojson is a library that is capable of creating a topojson encoded format of merely 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 to open notebook

Click on the image to go the Notebook Viewer with code-snippets how these images are created or visit the Topojson Documentation Site.

Installation

Installation can be done through PyPI by the following command:

python -m pip install topojson

And through conda using the following command:

conda install topojson -c conda-forge

This package topojson has the following hard dependencies:

  • numpy
  • shapely

Further, optional soft dependencies are:

  • altair - enlarge the experience by visualizing your TopoJSON output
  • simplification - more and quicker simplification options
  • geojson - parse string input with GeoJSON data
  • geopandas - parse your TopoJSON output directly into a GeoDataFrame
  • ipywidgets + (lab)extension - make your life complete with the interactive experience

Get in touch

For now, just use the Github issues. That can be:

  • usage questions
  • bug reports
  • feature suggestions
  • or anything related

Finally, see the Python Topojson Documentation Site for all info how to use this package.

Metadata

Release files for topojson 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for topojson 1.5
File Size Uploaded
topojson-1.5.tar.gz 24.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for topojson 1.5
File Interpreter ABI Platform
topojson-1.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 24.6 MB

Release files / topojson-1.5.tar.gz

Download URL topojson-1.5.tar.gz
Size 24.6 MB
Tags Source
SHA-256 checksum
How to use checksums
71c1463b8bb666297953e3c461efd3f0ebff6f4f223d48ea40fd8105caf6ca2e
BLAKE2b-256 checksum
How to use checksums
0cc0364277ced802f2ee79a776ffd13d1c18d1ada9d78837b01e9b242cd92004
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release files / topojson-1.5-py2.py3-none-any.whl

Download URL topojson-1.5-py2.py3-none-any.whl
Size 82.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2fafc9748b15f77c73d6e6a8d4fe3ad2ca7aaf2f316216618baba528412e30c6
BLAKE2b-256 checksum
How to use checksums
652b98e7b76436d8136efcb8ab0976588e553b2a92437b3ea4743c596ef0c65d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page