Docs
Contents

River basins of the main rivers (WFD art. 3)

What it is

The 118 river basins Spain reports to the European Commission under article 3 of the Water Framework Directive, grouped into 14 districts (COD_DEMAR). This is the water-planning scale: the unit each basin plan is written for and the one a Confederación Hidrográfica answers to. They total 493,583 km² — measured in an equal-area projection — and the large ones are the Ebro (84,448 km²), Duero (78,862), Guadalquivir (56,729), Tagus (55,770), Guadiana (55,279) and Júcar (21,726). The most fragmented districts are 16 (22 basins), 81 (20) and 61 (18). ⚠ NOM_CUENCA is filled in only 45.8 % of rows: 54 of the 118 carry a name and the rest are small coastal basins identified only by COD_CUENCA, which is unique across all 118. ⚠ Shape_Area and Shape_Leng come in square degrees and degrees, not metres: they are what ArcGIS computed over EPSG:4258 and are not usable as area. ⚠ Mainland only. Measured on the geometry: 0 polygons in the Canaries and 0 in the Balearics, with the envelope at lon −9.3..3.3 and lat 36.0..43.8. On the islands this layer does not say ‘no basin’, it says it is not published — the difference matters when it is used to rule sites out.

According to the publishing agency

Official text, in Spanish, exactly as the upstream service publishes it:

Cuencas hidrográficas de los principales ríos definidos en el artículo 3 de la Directiva Marco del Agua (DMA) Cuencas hidrográficas reportadas a la Comisión Europea en respuesta al artículo 3 de la Directiva Marco del Agua. La cuenca hidrográfica se define como la superficie de terreno cuya escorrentía superficial fluye en su totalidad a través de una serie de corrientes, ríos y eventualmente lagos hacia el mar por una única desembocadura, estuario o delta.

At a glance

IDes_hidrografia_cuencas
Records118
Size3.4 MB
GeometryMULTIPOLYGON, POLYGON
CRSEPSG:4326
Versionv/2026-08
Sourcemiteco
Upstream layermiteco:Cuencas_cauces_red_hidrografica.zip
LicenceCC-BY-4.0

Extent: -9.299744, 36.000364 → 3.322483, 43.791279

Download

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

sha256 of this version:

1d43fb478f14e042a3896cf7ce130111d8c38aa9304c774f81cf3d7edf9a21cf

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
COD_CUENCAVARCHAR100 %118
NOM_CUENCAVARCHAR45.76 %54
COD_DEMARVARCHAR100 %1416 · 81 · 61 · 101 · 14 · 62 · 71 · 15
Shape_LengDOUBLE100 %118Range: 0.145774562722 → 27.9906486956
Shape_AreaDOUBLE100 %118Range: 0.000431539386534 → 9.16732490141
prov_codeVARCHAR100 %30
prov_nameVARCHAR100 %30
prov_aproxBOOLEAN100 %1false
_fuenteVARCHAR100 %1miteco
_fecha_capturaDATE100 %12026-08-29
_fecha_edicionDATE100 %12026-08-29
_licenciaVARCHAR100 %1CC-BY-4.0
_atribucionVARCHAR100 %1© MITECO — CC BY 4.0 · des
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—