v.in.gsriver downloads and imports tiles of the GSriver
global river vector dataset (Liu et al., 2025, Scientific Data,
doi:10.1038/s41597-025-06399-2).
GSriver is an improved global river network built by fusing HydroRIVERS,
OpenStreetMap waterways, and the Global River Topology (GRIT) dataset. It is
distributed as continent-scale ESRI Shapefiles in WGS84 (EPSG:4326), hosted
on figshare:
https://figshare.com/articles/dataset/GSriver/30119851.
Data are downloaded per continent tile (option continent):
africa — Africa (166,335 rivers)
asia_europe — Asia and Europe, excluding Russia (209,528 rivers)
north_america — North America (134,242 rivers)
oceania — Oceania (45,738 rivers)
russia — Russia, distributed separately due to shapefile
size limits (95,122 rivers)
south_america — South America (97,664 rivers)
Multiple continents can be given as a comma-separated list. Each continent
is imported into its own map (named output_continent) unless
the -p flag is used to patch all requested continents into a single
output map with v.patch.
Each imported river feature carries the following attributes (see the
figshare dataset description for full details):
HydroID — upstream HydroRIVERS reach ID, unique river identifier
Nextdown — downstream receiving river code (0 = sea/lake/inland termination)
MAINRIVID — watershed ID
Hydrocount — number of original HydroRIVERS reaches merged
Rclass, RclassDISP — river classification / display level
Rlenth — river length (km)
Hydrolenth — original HydroRIVERS reach length before fusion (km)
Rcatch — drainage area of this reach, excluding tributaries (km²)
TCatch — total drainage area including tributaries (km²)
OSMratio, GRITratio, Hydroratio — percentage of vertices contributed by each source dataset
Rname, NameList — river name(s)
OrignCNT — country of river origin
If the data have already been downloaded, the input option can point
to a local GSriver-*-shp.zip file to skip the download (requires
exactly one continent value, to identify which tile it is).
Downloaded zip files are verified against the published MD5 checksums.
By default, downloaded and extracted files are placed in a temporary
directory removed at the end of the run; use download_dir to control
the location, and the -k flag to keep the files (e.g. for reuse
across several imports).
Use the -r flag to limit the import to the current computational
region (passed through to v.in.ogr-r), which considerably
speeds up import when only a subset of a continent is needed.
Continent zip files range from about 250 MB (Oceania) to 1.4 GB (Asia and
Europe) — importing several continents, or an entire continent without
-r, is data- and time-intensive. GSriver is licensed CC BY 4.0; cite
the source publication when using the data.
Liu, Y., Wang, J., Liu, C. et al. An improved global river vector dataset
based on multi-source river data fusion. Scientific Data (2025).
doi:10.1038/s41597-025-06399-2