topojson - a powerful library to encode geographic data as topology in Python!🌍
Project description
topojson
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 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 outputsimplification
- more and quicker simplification optionsgeojson
- parse string input with GeoJSON datageopandas
- parse your TopoJSON output directly into a GeoDataFrameipywidgets
+ (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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file topojson-1.9.tar.gz
.
File metadata
- Download URL: topojson-1.9.tar.gz
- Upload date:
- Size: 25.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a8389ff576d5540660d4430dab56fcadef7c1f90b9f1aa486b1cb140033ff3b |
|
MD5 | f05871c94d9d7f43d3d2b0bc9a78cb58 |
|
BLAKE2b-256 | e9c541006f71491f29428f1c72713ad26225434a2dd7225bbeb8e3e9a82bceb3 |
File details
Details for the file topojson-1.9-py3-none-any.whl
.
File metadata
- Download URL: topojson-1.9-py3-none-any.whl
- Upload date:
- Size: 82.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122e6e91fb422549644504580eee86f8a37703dc5ccb1a8e6d8928b750706fe7 |
|
MD5 | cd0927540350524955b76d9b19075731 |
|
BLAKE2b-256 | e067bf9a1786862565b12798fd6d9b7aa72ec2b4d6a10e82fb9936ac01f39d97 |