pghydro
pghydro
pghydro : Drainage network analysis core for PostgreSQL and PostGIS
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1600 | pghydro
|
pghydro
|
6.6 |
GIS
|
GPL-2.0
|
SQL
|
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
----d--
|
No
|
No
|
No
|
Yes
|
no
|
no
|
| Relationships | |
|---|---|
| Schemas | pghydro |
| Requires | plpgsql
postgis
|
| Siblings | pgh_raster
pgh_hgm
pgh_output
pgh_output_en_au
pgh_output_pt_br
pgh_consistency
|
Lead row; package also ships pgh_raster, pgh_hgm, pgh_output, pgh_output_en_au, pgh_output_pt_br, and pgh_consistency.
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY
|
6.6 |
18
17
16
15
14
|
pghydro |
plpgsql, postgis |
| RPM | PIGSTY
|
6.6 |
18
17
16
15
14
|
pghydro_$v |
postgis36_$v |
| DEB | PIGSTY
|
6.6 |
18
17
16
15
14
|
postgresql-$v-pghydro |
postgresql-$v-postgis-3 |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
el8.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
el8.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
el9.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
el9.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
el10.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
el10.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
d12.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
d12.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
d13.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
d13.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
u22.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
u22.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
u24.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
u24.aarch64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
Source
pig build pkg pghydro; # build rpm/debInstall
Make sure PGDG and PIGSTY repo available:
pig repo add pgsql -u # add both repo and update cacheInstall this extension with pig:
pig install pghydro; # install via package name, for the active PG version
pig install pghydro -v 18; # install for PG 18
pig install pghydro -v 17; # install for PG 17
pig install pghydro -v 16; # install for PG 16
pig install pghydro -v 15; # install for PG 15
pig install pghydro -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION pghydro CASCADE; -- requires plpgsql, postgisUsage
Sources: GitHub repo, README, releases Lead extension for the PgHydro suite.
PgHydro extends PostGIS and PostgreSQL for drainage network analysis and water-resources decision making. The project covers river network modeling, flow-direction analysis, Otto Pfafstetter basin coding, upstream and downstream stretch selection, distance-to-mouth calculations, upstream area analysis, river orders, and basin levels.
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_raster;
CREATE EXTENSION pghydro;
CREATE EXTENSION pgh_raster;
CREATE EXTENSION pgh_hgm;
CREATE EXTENSION pgh_consistency;
CREATE EXTENSION pgh_output;Components
pghydrois the core drainage-network analysis extension.pgh_rasteruses hydrological products derived from a digital elevation model.pgh_hgmcombinespghydroandpgh_rasterfor hydrogeomorphological analysis.pgh_outputprovides reporting objects.pgh_consistencyadds Pfafstetter consistency checks.
Requirements
- PostgreSQL 9.1 or newer.
- PostGIS 3.x.
- PostGIS Raster.
Notes
- The README says the master branch tracks the latest minor release, 6.6.
- The CSV lead row is the core
pghydropackage, but the repository also ships companion extensions in the same release tree.
Last updated on