Skip to content

pgh_output_pt_br

Brazilian Portuguese output pack for PgHydro

pghydro · Brazilian Portuguese output pack for PgHydro

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
1605pgh_output_pt_brpghydro6.6GISGPL-2.0SQL
AttributeHas BinaryHas LibraryNeed LoadHas DDLRelocatableTrusted
----d--NoNoNoYesnono

Packages

TypeRepoVersionPG Major CompatibilityPackage PatternDependencies
EXTPIGSTY6.619 18 17 16 15pghydroplpgsql, postgis, pghydro
RPMPIGSTY6.619 18 17 16 15pghydro_$vpostgis37_$v
DEBPIGSTY6.619 18 17 16 15postgresql-$v-pghydropostgresql-$v-postgis-3
Linux / PGPG19PG18PG17PG16PG15
el8.x86_64N/APIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
el8.aarch64N/APIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
el9.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
el9.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
el10.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
el10.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
d12.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
d12.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
d13.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
d13.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u22.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u22.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u24.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u24.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u26.x86_64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6
u26.aarch64PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6PIGSTY 6.6

Source

pig build pkg pghydro;		# build rpm/deb

Install

Make sure PGDG and PIGSTY repo available:

pig repo add pgsql -u   # add both repo and update cache

Install this extension with pig:

pig install pghydro;		# install by package name
pig install pgh_output_pt_br;		# install by extension name

pig install pgh_output_pt_br -v 19;   # install for PG 19
pig install pgh_output_pt_br -v 18;   # install for PG 18
pig install pgh_output_pt_br -v 17;   # install for PG 17
pig install pgh_output_pt_br -v 16;   # install for PG 16
pig install pgh_output_pt_br -v 15;   # install for PG 15

Create this extension with:

CREATE EXTENSION pgh_output_pt_br CASCADE; -- requires plpgsql, postgis, pghydro

Usage

Sources: PGHydro README, pgh_output_pt_br SQL

pgh_output_pt_br provides a Brazilian-Portuguese PgHydro output schema. It creates localized export tables for drainage-network products and a refresh function that populates them from the base PgHydro model.

Enable

CREATE EXTENSION postgis;
CREATE EXTENSION pghydro;
CREATE EXTENSION pgh_output_pt_br;

Output Tables

The extension creates the pgh_output_pt_br schema with tables including:

TablePurpose
geoft_bho_trecho_drenagemDrainage-line export table
geoft_bho_area_drenagemDrainage-area export table
geoft_bho_curso_daguaWatercourse export table
geoft_bho_ponto_drenagemDrainage-point export table
geoft_bho_linha_costaShoreline export table

Refresh Output

SELECT pgh_output_pt_br.pghfn_updateexporttables();

Notes

Use this extension when exported PgHydro products need Brazilian-Portuguese object names. Regenerate the output after source drainage geometry, topology, or coding changes.

Table reader