pgh_hgm
PgHydro 水文地貌分析扩展
概览
| ID | 扩展名 | Bin | Lib | Load | Create | Trust | Reloc | 模式 |
|---|---|---|---|---|---|---|---|---|
| 1600 | pghydro | 否 | 否 | 否 | 是 | 否 | 否 | pghydro |
| 1601 | pgh_raster | 否 | 否 | 否 | 是 | 否 | 否 | pgh_raster |
| 1602 | pgh_hgm | 否 | 否 | 否 | 是 | 否 | 否 | pgh_hgm |
| 1603 | pgh_output | 否 | 否 | 否 | 是 | 否 | 否 | pgh_output |
| 1604 | pgh_output_en_au | 否 | 否 | 否 | 是 | 否 | 否 | pgh_output_en_au |
| 1605 | pgh_output_pt_br | 否 | 否 | 否 | 是 | 否 | 否 | pgh_output_pt_br |
| 1606 | pgh_consistency | 否 | 否 | 否 | 是 | 否 | 否 | pgh_consistency |
| 相关扩展 | plpgsql postgis postgis_raster pghydro pgh_raster pgrouting postgis_raster pointcloud h3 q3c mobilitydb pg_sphere |
|---|
Extension version is 2.2.6, shipped inside pghydro package version 6.6.
版本
| 类型 | 仓库 | 版本 | PG 大版本 | 包名 | 依赖 |
|---|---|---|---|---|---|
| EXT | PIGSTY | 2.2.6 | 1817161514 | pghydro | plpgsql, postgis, postgis_raster, pghydro, pgh_raster |
| RPM | PIGSTY | 6.6 | 1817161514 | pghydro_$v | postgis36_$v |
| DEB | PIGSTY | 6.6 | 1817161514 | postgresql-$v-pghydro | postgresql-$v-postgis-3 |
| OS / 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 |
构建
您可以使用 pig build 命令构建 pghydro 扩展的 RPM / DEB 包:
BASH
安装
您可以直接安装 pghydro 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用:
BASH
使用 pig 或者是 apt/yum/dnf 安装扩展:
安装
BASH
pig
BASH
dnf
BASH
apt
BASH
创建扩展:
SQL
用法
pgh_hgm 为 PgHydro 增加水文地貌分析函数。它结合排水线、排水区、DEM 以及派生栅格产品,计算水资源分析中常用的流域和河网指标。
启用
在核心 PgHydro 和栅格扩展之后安装:
SQL
初始化对象
扩展创建 pgh_hgm schema,其中包括 pghft_drn_elevationprofile、pghft_upn_elevationprofile、pghft_hydro_intel 等表。
SQL
指标
SQL 对象包括高程剖面、排水区高程摘要、坡面流平均长度、轴长、圆形度、紧凑度、排水密度、高程统计、形状因子、水文密度、Kirpich 时间、周长、河段坡降、相对起伏、汇流时间、坡度方法、弯曲度、波速传播,以及 AMHG 深度/宽度估计等函数。
SQL
注意事项
运行指标计算前,需要先加载并校验 DEM、flow direction、flow accumulation 以及 PgHydro 排水图层。pgh_hgm 依赖 pgh_raster 提供栅格派生水文产品。