Docs
Contents

River basins

What it is

Sub-basins by water body.

The upstream service publishes no abstract for this layer.

At a glance

IDpt_agua_bacias_hidrograficas
Records1,805
Size19.8 MB
GeometryMULTIPOLYGON, POLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceapa
Upstream layerapa_geodocs:wise_vw_surfacewaterbody_basin_ptcont
LicenceCC-BY-4.0

Extent: -9.579708, 36.941224 → -6.157064, 42.168785

Download

curl -H "x-api-key: $GEOVIS_API_KEY" \
https://datos.geovis.es/v1/data/datasets/pt_agua_bacias_hidrograficas/download

sha256 of this version:

739041f2d1d585ba3b7f868b6a78ca2c4bdf15a636c97e27f7bc93fe021fa11e

Query it without downloading it

import duckdb
con = duckdb.connect(); con.execute("INSTALL spatial; LOAD spatial; INSTALL httpfs; LOAD httpfs;")
con.execute("SELECT count(*) FROM read_parquet('<url-firmada>')").fetchone()

Columns

Column names are kept exactly as the agency publishes them. They are not translated: renaming them would break traceability against the official source.

The literals below are the ones present in the data: they work as-is in a WHERE. Only columns with few distinct values are enumerated; for the rest, the count is given.

ColumnTypeFilledDistinctValues
codigoVARCHAR100 %1,805
nomeVARCHAR100 %1,461
regiao_hidVARCHAR100 %8R.H. Tejo e Ribeiras do Oe · R.H. Douro · R.H. Guadiana · R.H. Sado e Mira · R.H. Vouga. Mondego e Lis · R.H. Cávado, Ave e Leça · R.H. Ribeiras do Algarve · R.H. Minho e Lima
categoriaVARCHAR100 %4RIO · RIO (ALBUFEIRA) · TRANSICAO · COSTEIRA
natur_fm_aVARCHAR100 %3Natural · Fortemente modificada · Artificial
transfrontVARCHAR100 %2Não · Sim
est_pot_ecVARCHAR100 %6Bom · Razoável · Medíocre · Mau · Excelente · Desconhecido
estado_quiVARCHAR100 %3Desconhecido · Bom · Insuficiente
dt_codeVARCHAR100 %18
_fuenteVARCHAR100 %1apa
_fecha_capturaDATE100 %12026-08-25
_fecha_edicionDATE100 %12026-08-22
_licenciaVARCHAR100 %1CC-BY-4.0
_atribucionVARCHAR100 %1Agência Portuguesa do Ambi
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—