A QGIS plugin for automated extraction of hydrogeomorphic features to support functional process zone classification of river networks
If you use this plugin in your work, please cite it as:
Cite: Nesslage J, Hestir E. OpenRES (Open Riverine Ecosystem Synthesis): A QGIS plugin for automated extraction of hydrogeomorphic features to support functional process zone classification of river networks. Zenodo; 2025.
@software{nesslage2025OpenRES,
author = {Nesslage, Jacob and
Hestir, Erin},
title = {OpenRES (Open Riverine Ecosystem Synthesis): A
QGIS plugin for automated extraction of
hydrogeomorphic features to support functional
process zone classification of river networks
},
month = oct,
year = 2025,
publisher = {Zenodo},
version = {v1.0.1},
doi = {10.5281/zenodo.17307006},
url = {https://doi.org/10.5281/zenodo.17307006}
}
OpenRES enables QGIS users to extract nine required physical and environmental features along river segments (typically 5–10 km) to support classification of river networks into Functional Process Zones (FPZs).
Functional Process Zone (FPZ) classification is a method used to divide a river network into river valley scale (5-10 km) segments (or "zones") that share similar physical, hydrological, and geomorphic characteristics. Rather than treating a river as a continuous longitudinal gradient of changing physical conditions, FPZ classification recognizes that rivers are composed of a discontinuous set of hydrogeomorphic patches, each shaped by different landscape and hydrologic processes (Hestir 2007). These zones reflect how the river behaves in a given segment, including how it flows, how it transports sediment, how it interacts with its floodplain, and what types of habitats it supports. After classifying a river network in FPZs, research questions posed by the tenets of the Riverine Ecosystem Synthesis hypothesis (Thorp et al. 2006, Thorp et al. 2023) can be explored.
There are five required datasets needed prior to the extraction of hydrogeomorphic features along a user's watershed of interest using OpenRES in QGIS:
- A geomorphically corrected stream network (.shp): This is a stream network generated using Whitebox Tools or another hydrological toolbox in QGIS from a DEM, which is then manually corrected to ensure that the stream network follows the course of the river as observed from imagery during the time period of interest. The stream network should be a MultiLineString object, the river segments should be segmented to a user-defined length (usually 5km-10km for FPZs), and it is recommended that the user smooth the final river network to reduce the likelihood of erroneous transect generation prior to use in OpenRES.
- A line layer denoting the boundaries of the valley floor and the valleys (.shp): This layer is a line layer that contains the boundaries of both the valley bottom and the microsheds/isobasins that intersect with the valley bottom. The general procedure for producing this layer is described fully in Williams et al. 2013; however, the steps include 1.) delineating the valley bottom using a flooding algorithm (MRVBF, FLDPLN) or slope thresholding algorithm (VBET-2, Sechu et al. 2021), 2.) manual interpretation and edits to the valley bottom output to fix holes and ensure that the valley bottoms conform to expectations, 3.) generation of 1 km2 - 2 km2 "microsheds" or "isobasins" across your DEM, and 4.) various vector opertations (intersection, difference, polygon to line) to obtain a line layer that contains both the valley floor boundaries and the boundaries of intersecting microsheds that overlap with the valley floor boundaries. Thus, this layer approximates the boundaries of the valley floor and the tops of the valley that confines the river network.
- A mean annual precipitation layer (.geotiff): This is a rasterized mean annual precipitation layer. Examples include but are not limited to the PRISM dataset (800m) in the U.S. or WorldClim (5km) for global studies.
- A Digital Elevation Model (DEM) (.geotiff): This is a digital elevation model of the watershed of interest, often obtained from remote sensing platforms. Common datasets include 30m SRTM (global) DEMs or the 10m 3DEP (U.S.) DEMs.
- A geology layer (.shp): This is a geology polygon layer that contains geologic classification of surficial or underlying geology. Often, this layer is a simplified version of the source geology layer that is classified into bedrock, mixed, or alluvial classes. In the U.S., these can be obtained from USGS; internationally, most governments can provide a publically accessible vector dataset for this analysis.
As of this version of the plugin, the core function of OpenRES is to provide the minimal number of required features necessary to delineate FPZs from river networks. The nine required features historically used to define Functional Process Zones along river segments (see Williams et al. 2013) are:
- Elevation (ELE): Elevation value (often in meters), extracted from the center of each stream segment.
- Mean Annual Precipitation (PRE): Mean annual precipitation value (often in mm), extracted from the center of each stream segment.
- Geology (GEO): Geology field value, extracted from the center of each stream segment.
- Valley Floor Width (VFW): Width (in meters) between the first intersections of the transects for each stream segment on the left and right sides of the stream and the valley line layer. When correctly generated, the first intersection of the valley line layer should correspond with the boundaries of the valley floor.
- Valley Width (VW): Width (in meters) between the second intersections of the transects for each stream segment on the left and right sides of the stream and the valley line layer. When correctly generated, the second intersection of the valley line layer should correspond with tops of hydrologically connected basins that intersect the valley floor, which approximates the tops of valleys.
- Right Valley Slope (RVS): Slope (in %) between the first and second intersection of a transect with the valley line layer on the right side of the river, as defined from a downstream direction. This essentially is the slope between the tops of the valley and the valley bottom on the right side of the river.
- Left Valley Slope (LVS): Slope (in %) between the first and second intersection of a transect with the valley line layer on the left side of the river, as defined looking downstream. This essentially is the slope between the tops of the valley and the valley bottom on the left side of the river.
- Down Valley Slope (DVS): The slope (in %) between the starting point and endpoint of a given stream segment.
- Sinuosity (SIN): The ratio of the true stream distance and the straight line distance between the starting point and endpoint of a given stream segment.
These nine features can then be used to classify stream networks using unsupervised hierarchical classification methods (see examples in Thorp et al. 2010, Elgueta et al. 2019, Maasri et al. 2021). The classes obtained using these methods define stream segments that share similar physical, hydrological, and geomorphic characteristics.
Future versions of OpenRES will likely extend the number of features to include optional features, such as the ratio of valley width to valley floor width (RAT), channel belt sinuosity (CBD), the valley confinement index (VCI), and other miscellaneous tools to aid users in producing the required datasets.
Note: OpenRES requires QGIS version >=3.28.
Offline installation from .zip file :
-
Go to releases of this repository -> select desired version -> download the .zip file.
-
Open QGIS -> Plugins -> Manage and Install Plugins... -> install from ZIP tab --> select the downloaded zip --> install plugin (ignore warnings, if any).
Note: All the following processing steps should be done in a sequential manner, following the instructions below. Sample data for hydrogeomorphic feature extraction is provided in sample_data folder.
To demonstrate the use of OpenRES, we have provided a dataset from the Eerste River catchment, a small watershed located in the Greater Cape Floristic Region of South Africa.
The Eerste River originates in the Jonkershoek Mountains, part of the Hottentots-Holland mountain range, and flows westward through the Stellenbosch area before reaching the False Bay coast near Strand. It drains a catchment area of approximately 390 km². Dominated by fynbos vegetation, the area hosts numerous endemic plant species and is under increasing pressure from urban development, invasive species, and agricultural runoff.
Before starting the OpenRES workflow:
- Ensure all input data are properly prepared:
- Stream network (.shp)
- Valley boundaries (.shp)
- Elevation raster (.tif)
- Precipitation raster (.tif)
- Geology polygons with a classification field (e.g.,
LITH
,TYPE
, orGEO
) (.shp)
- The OpenRES plugin is installed and enabled in QGIS.
- The Processing Toolbox is open (via
Processing > Toolbox
).
The following table summarizes the nine geomorphic and environmental features that will be automatically derived across the Eerste River catchment using the OpenRES tool suite. Each transect, generated perpendicular to the stream network, will be assigned a unique identifier t_ID
, and the attributes listed below will be extracted or calculated at the transect or segment level. Transects, segment centers, and the river network segments are all linked together by the t_ID
field, enabling subsequent FPZ classification methods to link using joins and relates to the stream network, river segment centers, or transects as desired for visualization purposes.
Step | Feature | Attribute Code |
---|---|---|
1 | Transects & segment centers | t_ID |
2 | Elevation | ELE |
2 | Precipitation | PRE |
2 | Geology class | GEO |
3 | Valley Floor Width | VFW |
3 | Valley Width | VW |
4 | Left/Right Side Slope | LVS , RVS |
5 | Down-Valley Slope | DVS |
5 | Sinuosity | SIN |
Use: "[1] Generate Transects"
Location: Processing Toolbox > OpenRES > Feature Extraction
- River Network Layer (polyline)
- Valley Lines Layer (line)
- Extension Increment (optional, default = 5m)
- Max Length (optional, default = 200m)
- Transects – Multiline layer across the valley
- Segment Centers – Points at the center of each transect
- Each river segment gets a unique
t_ID
. - Transects are generated perpendicular to the river segment direction.
- Verify that transects intersect both valley lines properly; occasional mismatches may occur due to geometry errors.
- Stream network will also be updated to include the
t_ID
field.
Use: "[2] Extract Point Data"
Location: Processing Toolbox > OpenRES > Feature Extraction
- Segment Centers Layer (from Step 1)
- Elevation Raster
- Precipitation Raster
- Geology Polygon Layer
- Geology Field (attribute from polygon layer, e.g.,
GEO
orLITH
)
- Segment Centers with ELE, PRE, GEO – Updated point layer
- Elevation and precipitation are sampled directly from rasters.
- Geology is assigned from intersecting polygon based on the selected field.
- Missing data (e.g., no polygon overlap or invalid raster) will be filled with fallback values (e.g., -9999 or "No Data").
Use: "[3] Extract VW and VFW"
Location: Processing Toolbox > OpenRES > Feature Extraction
- Transects Layer (from Step 1)
- Segment Centers Layer (from Step 2)
- Valley Lines Layer (same as Step 1)
- Stream Network Layer (same as Step 1)
- Left/Right VFW Reference Points
- Left/Right VW Reference Points
- Updated Segment Centers with:
VFW
– Valley floor widthVW
– Valley width
- Uses intersection logic to find points where transects intersect valley floor and valley edge.
- Then calculates distance between these intersections to compute
VFW
andVW
. - Reference points (left/right) are saved as point layers for inspection or QA/QC.
Use: "[4] Extract LVS and RVS"
Location: Processing Toolbox > OpenRES > Feature Extraction
- Segment Centers Layer (from Step 3)
- Left VW / VFW Reference Points
- Right VW / VFW Reference Points
- Elevation Raster
- Segment Centers updated with:
LVS
– Left valley side slope (%)RVS
– Right valley side slope (%)
- Slopes are computed as the elevation difference between VFW and VW reference points on each side divided by the horizontal distance.
- All calculations are in percent slope (
rise/run * 100
). - Output replaces the segment center layer with updated slope fields.
Use: "[5] Extract DVS and SIN"
Location: Processing Toolbox > OpenRES > Feature Extraction
- Segment Centers Layer (from Step 4)
- Stream Network Layer (with
t_ID
) - Elevation Raster
- Final OpenRES Segment Centers with:
DVS
– Down-valley slope (%)SIN
– Sinuosity (unitless)
- For each stream segment:
- Elevation is sampled at start and end points.
DVS
is calculated as(start - end) / length * 100
.SIN
is the ratio of actual segment length to straight-line distance.
- Features with insufficient geometry or elevation data are skipped.
At the end of Step 5, your segment center point layer will contain all 9 hydrogeomorphic attributes:
t_ID
,ELE
,PRE
,GEO
,VFW
,VW
,LVS
,RVS
,DVS
,SIN
-
Report issues or problems with the software here: https://github.com/jollygoodjacob/OpenRES/issues
-
For questions about the OpenRES plugin, contact: jnesslage@ucmerced.edu
Elgueta, Anaysa, Martin C Thoms, Konrad Górski, Gustavo Díaz, and Evelyn M Habit. 2019. “Functional Process Zones and Their Fish Communities in Temperate Andean River Networks.” River Research and Applications 35 (10): 1702–11.
Hestir, Erin L. 2007. “Functional Process Zones and the River Continuum Concept.” Center for Watershed Sciences, University of California, Davis, Los Angeles, USA.
Maasri, Alain, James H Thorp, Jon K Gelhaus, Flavia Tromboni, Sudeep Chandra, and Scott J Kenner. 2019. “Communities Associated with the Functional Process Zone Scale: A Case Study of Stream Macroinvertebrates in Endorheic Drainages.” Science of the Total Environment 677: 184–93.
Thorp, James H, Martin C Thoms, and Michael D Delong. 2006. “The Riverine Ecosystem Synthesis: Biocomplexity in River Networks across Space and Time.” River Research and Applications 22 (2): 123–47.
Thorp, James H, Martin C Thoms, and Michael D Delong. 2010. The Riverine Ecosystem Synthesis: Toward Conceptual Cohesiveness in River Science. Elsevier.
Thorp, James H, Martin C Thoms, Michael D Delong, and Alain Maasri. 2023. “The Ecological Nature of Whole River Macrosystems: New Perspectives from the Riverine Ecosystem Synthesis.” Frontiers in Ecology and Evolution 11: 1184433.
Williams, Bradley S, Ellen D’Amico, Jude H Kastens, James H Thorp, Joseph E Flotemersch, and Martin C Thoms. 2013. “Automated Riverine Landscape Characterization: GIS-Based Tools for Watershed-Scale Research, Assessment, and Management.” Environmental Monitoring and Assessment 185: 7485–99.