PyGeoOps
PyGeoOps provides some less common or extended spatial algorithms and utility functions.
Introduction
This is a shortlist of the available functions:
- centerline: centerline/medial axis calculation for a polygon, including optional cleanup of short branches.
- view_angles: determine the start and end angle a polygon is visible from the viewpoint specified
- simplify: simplify a polygon, with some extended options like
- choice in simplification algorithms: Lang (+ a variant), Ramer Douglas Peuker, Visvalingal Whyatt
- specify points/locations where points should not be removed by the simplification
- topologic simplification: common boundaries between input features should stay common
- utility functions to create and split grids (create_grid, split_tiles)
- general utility functions on geometries like remove_inner_rings, collection_extract,…
Full documentation can be found on Read the Docs.
Usage
The centerline for a polygon, including the default cleanup of short branches, can be calculated like this:
import pygeoops
import shapely
polygon = shapely.from_wkt("POLYGON ((0 0, 0 8, -2 10, 4 10, 2 8, 2 2, 10 2, 10 0, 0 0))")
centerline = pygeoops.centerline(polygon)
Installation
PyGeoOps is available on PyPi, so can be installed using pip:
pip install pygeoops
Another option is to use conda or mamba, as it is also available on conda-forge:
conda install pygeoops --channel conda-forge
Metadata
Release files for pygeoops 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygeoops-0.6.0.tar.gz | 55.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygeoops-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.4 kB
Release files / pygeoops-0.6.0.tar.gz
| Download URL | pygeoops-0.6.0.tar.gz |
|---|---|
| Size | 55.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
062282752fd6c6f1255fb6b31c702379b1466bdb0fd2579b08d21496df35ac82
|
|
BLAKE2b-256 checksum How to use checksums |
c8a9eb105f6a5a5863c70a1d32e88e4e7b4e53403b8810e13a545064d0be0fb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / pygeoops-0.6.0-py3-none-any.whl
| Download URL | pygeoops-0.6.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
570d6a1e2252801d3b8fba40f6b63326ea24f130e71ae37138940a35c02675d8
|
|
BLAKE2b-256 checksum How to use checksums |
c016bb033060a00fe6c2a68c6f0c8c757c55cea4b4854b19dc5128c33e9f1266
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|