GISGEARS
A collection of Python tools for GIS/hydrology raster and vector analysis.
WhiteboxTools:
wsdgendepends on the WhiteboxTools executable, which thewhiteboxPython package downloads automatically the first time it runs.
Installation
pip install gisgears
Features
- wsdgen: Delineate a watershed from a DEM and an outlet layer (point or line)
Usage
Command-line
# List all available commands
gisgears-info
# Delineate a watershed from a point outlet
wsdgen --dem dem.tif --outlet outlet.shp
# Delineate a watershed from a line outlet (e.g. a cross-section), keeping intermediates
wsdgen --dem dem.tif --outlet crosssection.shp --all-outputs
# Use a coarser/finer boundary-smoothing filter
wsdgen --dem dem.tif --outlet outlet.shp --smooth-filter 15
Python API
from gisgears import wsdgen
# Delineate a watershed (written to WSD/watershed.tif, watershed.shp, watershed_smooth.shp)
wsdgen.delineate_watershed(dem="dem.tif", outlet="outlet.shp")
Notes
- The outlet layer may be a point shapefile (a single manually-marked outlet) or a line shapefile (e.g. a cross-section at the watershed outlet);
wsdgendetects the geometry type automatically. - By default only the final
watershed.tif,watershed.shpandwatershed_smooth.shpare written to theWSD/output directory; pass--all-outputsto also keep intermediate files (breached DEM, D8 pointer, flow accumulation, snapped outlet, etc.) there instead of a temporary folder.
Metadata
Release files for gisgears 0.1.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 | |
|---|---|---|---|
| gisgears-0.1.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisgears-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / gisgears-0.1.0.tar.gz
| Download URL | gisgears-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2ac8dfb931a732a16d352a6c14f28ca6adefacf60badbf4ec60d7d2c5371692
|
|
BLAKE2b-256 checksum How to use checksums |
5545557ba43b737a6147b2b683102cc87ec17fee93ffd2265c50119ee71c77c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency logRelease files / gisgears-0.1.0-py3-none-any.whl
| Download URL | gisgears-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de3c9a68751ade2433271442a436fa89fa4d53bad8f2524b31e16d5fe32dea77
|
|
BLAKE2b-256 checksum How to use checksums |
205863f8b099e8b341c0888709a1ae61290ac63394c3f357dfbf60a791d6aac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 27, 2026.
Transparency log