A tool to create Voronoi diagram for polygons.
Project description
Voronoi diagram for polygons
Voronoi diagram for polygons is a tool to create a Voronoi diagram also known as Thiessen polygons for polygons. It's based on Shapely and GeoPandas. There are lots of tools to create a Voronoi diagram for points, for example Create Thiessen Polygons (Analysis) in ArcGIS Pro or ArcGIS Desktop, Voronoi Polygons in QGIS, or voronoi_diagram in Shapely. All of them are really cool. How about a Voronoi diagram for polygons? That's what this tool does.
Table of contents
Installation, update and uninstallation
Dependencies
It's based on voronoi_diagram
from Shapely which is new in version 1.8.dev0. As of today, it is still a deveoping version. (2020-07-26) You can install or upgrade to the latest version by using:
pip install git+https://github.com/Toblerity/Shapely
pip install --upgrade git+https://github.com/Toblerity/Shapely
To install
Quick installation with [pip]:
pip install voronoi-diagram-for-polygons
Or from github:
pip install git+https://github.com/longavailable/voronoi-diagram-for-polygons
Also, you can just copy related functions from "[/longsgis/longsgis.py]" to your work.
To update
pip install --upgrade voronoi-diagram-for-polygons
To uninstall
pip uninstall voronoi-diagram-for-polygons
Known shortages
- It may produce some polygons (unconnected polygons) around the boundary.
How to cite
If this tool is useful to your research, star and cite it as below:
Xiaolong Liu, & Meixiu Yu. (2020, July 26). longavailable/voronoi-diagram-for-polygons. Zenodo.
http://doi.org/10.5281/zenodo.3960407
Easily, you can import it to Mendeley.
Changelog
v0.1.0
- First release.
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
Built Distribution
Hashes for voronoi-diagram-for-polygons-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d28dade877644a4a2db2a713a863235782a328f18d1ecccaaec0b5ab8df233a |
|
MD5 | 042927a0bed2e0ca311745814b8abaa6 |
|
BLAKE2b-256 | 71fd9e49f57816f7c72567e6fe16f4140eaffcf0d995ec2e6f8f9e40e5def850 |
Hashes for voronoi_diagram_for_polygons-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a62a2d696426d6255fb01d3707666e7c5e328fe8b2b0663ee01fed9d663a05bd |
|
MD5 | 045a8cad88d6ae41e3da66ce4456d047 |
|
BLAKE2b-256 | ed6b808e5b820823bdd90d46bcb74edcb1ca665e57580a05cb23c477bfb168d7 |