pgh_output
pghydro : Output and reporting objects for PgHydro
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 1603 | pgh_output
|
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 | pgh_output |
| Requires | plpgsql
postgis
pghydro
|
| Siblings | pghydro
pgh_raster
pgh_hgm
pgh_output_en_au
pgh_output_pt_br
pgh_consistency
|
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PIGSTY
|
6.6 |
18
17
16
15
14
|
pghydro |
plpgsql, postgis, pghydro |
| 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
|
u26.x86_64
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
PIGSTY 6.6
|
u26.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 pgh_output; # install by extension name, for the current active PG version
pig install pgh_output -v 18; # install for PG 18
pig install pgh_output -v 17; # install for PG 17
pig install pgh_output -v 16; # install for PG 16
pig install pgh_output -v 15; # install for PG 15
pig install pgh_output -v 14; # install for PG 14Create this extension with:
CREATE EXTENSION pgh_output CASCADE; -- requires plpgsql, postgis, pghydroUsage
Sources: PGHydro README, pgh_output SQL
pgh_output creates export tables for PgHydro drainage-network products. It materializes drainage lines, drainage areas, watercourses, drainage points, and shorelines in a schema intended for downstream reporting or GIS exchange.
Enable
CREATE EXTENSION postgis;
CREATE EXTENSION pghydro;
CREATE EXTENSION pgh_output;Export Tables
The extension creates the pgh_output schema with tables including:
| Table | Purpose |
|---|---|
geoft_bho_drainage_line |
Exported drainage-line features |
geoft_bho_drainage_area |
Exported drainage-area features |
geoft_bho_watercourse |
Exported watercourse features |
geoft_bho_drainage_point |
Exported drainage-point features |
geoft_bho_shoreline |
Exported shoreline features |
Refresh Output
SELECT pgh_output.pghfn_updateexporttables();Run the refresh function after loading or recalculating the base PgHydro network.
Notes
Validate the PgHydro network first with consistency checks when possible. The export tables are derived products and should be regenerated after upstream drainage geometry, topology, or coding changes.