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)
- showtif: Display a DEM GeoTIFF with an elevation colormap and hillshade
- showshp: Display one or more shapefiles overlaid on a single map
- showtable: Print the attribute table of a shapefile or GeoPackage layer
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
# Inspect a DEM (prints CRS/size/stats, plots elevation + hillshade)
showtif dem.tif
# Overlay shapefiles on one map, labelling features by a column
showshp WSD/watershed.shp outlet.shp -l Station
# Print an attribute table (selected columns, with geometry as WKT)
showtable thiessen.shp -c Station -g
showtable data.gpkg -l roads -n 20
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")
from gisgears import showtif, showshp, showtable
showtif.show_dem("dem.tif")
showshp.show_shapefiles(["WSD/watershed.shp", "outlet.shp"], label="Station")
table = showtable.show_table("thiessen.shp", columns=["Station"]) # returns a DataFrame
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.2.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 | Provenance | |
|---|---|---|---|---|
| gisgears-0.2.0.tar.gz | 11.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gisgears-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / gisgears-0.2.0.tar.gz
| Download URL | gisgears-0.2.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b655b0ef605e04759c3f187ff868b6f00761c42e2f05659942ab075ff58d7fdc
|
|
BLAKE2b-256 checksum How to use checksums |
1c058b71d2a08555c9442a3647ef7cef51099baf763bea285ad988a7e5da92b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logRelease files / gisgears-0.2.0-py3-none-any.whl
| Download URL | gisgears-0.2.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5516d98056a291514a613fee4b738f30799ad271767f96738da94a037f0c2cec
|
|
BLAKE2b-256 checksum How to use checksums |
c4775178968b260fce6b7d58b37ca64233f7d981e5f682106cb9b52ce37ae1b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 24, 2026.
Transparency logSecurity for gisgears 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for gisgears-0.2.0.tar.gz
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 Oct 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.