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
| ID | es_hidrografia_cuencas |
| Records | 118 |
| Size | 3.4 MB |
| Geometry | MULTIPOLYGON, POLYGON |
| CRS | EPSG:4326 |
| Version | v/2026-08 |
| Source | miteco |
| Upstream layer | miteco:Cuencas_cauces_red_hidrografica.zip |
| Licence | CC-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/downloadsha256 of this version:
1d43fb478f14e042a3896cf7ce130111d8c38aa9304c774f81cf3d7edf9a21cfQuery it without downloading it
import duckdbcon = 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.
| Column | Type | Filled | Distinct | Values |
|---|---|---|---|---|
COD_CUENCA | VARCHAR | 100 % | 118 | |
NOM_CUENCA | VARCHAR | 45.76 % | 54 | |
COD_DEMAR | VARCHAR | 100 % | 14 | 16 · 81 · 61 · 101 · 14 · 62 · 71 · 15 |
Shape_Leng | DOUBLE | 100 % | 118 | Range: 0.145774562722 → 27.9906486956 |
Shape_Area | DOUBLE | 100 % | 118 | Range: 0.000431539386534 → 9.16732490141 |
prov_code | VARCHAR | 100 % | 30 | |
prov_name | VARCHAR | 100 % | 30 | |
prov_aprox | BOOLEAN | 100 % | 1 | false |
_fuente | VARCHAR | 100 % | 1 | miteco |
_fecha_captura | DATE | 100 % | 1 | 2026-08-29 |
_fecha_edicion | DATE | 100 % | 1 | 2026-08-29 |
_licencia | VARCHAR | 100 % | 1 | CC-BY-4.0 |
_atribucion | VARCHAR | 100 % | 1 | © MITECO — CC BY 4.0 · des |
bbox | STRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE) | 100 % | — | |
geometry | GEOMETRY(‘EPSG:4326’) | 100 % | — |