Skip to main content

topojson - a powerful library to encode geographic data as topology in Python!🌍

Project description

topojson

PyPI version License github actions Conda version shapely 2.0 compliant

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
  • packaging

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.

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

topojson-1.8.tar.gz (25.5 MB view details)

Uploaded Source

Built Distribution

topojson-1.8-py3-none-any.whl (82.4 kB view details)

Uploaded Python 3

File details

Details for the file topojson-1.8.tar.gz.

File metadata

  • Download URL: topojson-1.8.tar.gz
  • Upload date:
  • Size: 25.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for topojson-1.8.tar.gz
Algorithm Hash digest
SHA256 1363933c31cd9ba3dd9cf9df96bbd3ffe56126bd0396f0295a41b48c5666de08
MD5 809a70a8e2bab7902074f23449223123
BLAKE2b-256 15fea87a056155b9cf54f2b1dea55dac6daf7f411c3fdb19c6b3427041cd2f0f

See more details on using hashes here.

File details

Details for the file topojson-1.8-py3-none-any.whl.

File metadata

  • Download URL: topojson-1.8-py3-none-any.whl
  • Upload date:
  • Size: 82.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for topojson-1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 67ac4c6b803ef12fd1f02eb9f66791ba32fbff80e60c05d18a12ad9b88ff493a
MD5 3fcbd0d3c0ba0f383b58f929fd52d402
BLAKE2b-256 06ab9eef12cf9891aad164b80b366167382032dc93f33a0801a068fb7086178a

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