Watercourses
What it is
The centrelines of the BTN river network, with network topology: persi_0302 states whether the watercourse is permanent, seasonal or intermittent, and jerar_0302 places it in the basin hierarchy, which is what lets you walk upstream from a point. IGN mapping is the good positional reference — better than 3 m — not the legal delineation: to know where the public hydraulic domain ends, go to es_hidrografia_dph. ⚠ Only 32.5 % of the lines carry a nombre; the rest are minor reaches with no toponym. ⚠ Partial coverage: today the file holds only natural river centrelines (btn0302l_rio); the BTN’s artificial channels (btn0305l_cau_art, 122,436 lines) are not included.
According to the publishing agency
Official text, in Spanish, exactly as the upstream service publishes it:
BTN — Base Topográfica Nacional Base de datos tridimensional multiescala (1:2.000-1:25.000) con cobertura completa y continua para España. Contiene datos topográficos y temáticos que permiten su explotación mediante sistemas de información geográfica y la generación de productos cartográficos y servicios interoperables. Incluye información hidrográfica con estructura de red e información geográfica de referencia del IGN de redes de transporte y poblaciones. … La resolución de los datos depende de la temática tratada, pero puede asegurarse que de forma global la exactitud posicional es mejor de 3 metros en X, Y, Z. …
At a glance
| ID | es_hidrografia_cursos_agua |
| Records | 578,513 |
| Size | 683.9 MB |
| Geometry | LINESTRING |
| CRS | EPSG:4326 |
| Version | v/2026-08 |
| Source | ign |
| Upstream layer | ign:btn0302l_rio |
| Licence | CC-BY-4.0 |
Extent: -18.156245, 27.677821 → 4.310634, 43.772467
Download
curl -H "x-api-key: $GEOVIS_API_KEY" \ https://datos.geovis.es/v1/data/datasets/es_hidrografia_cursos_agua/downloadsha256 of this version:
e957990a781a838cdaad6e7159b30d9653971154556430f6519df5ed542b0fa0Query 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 |
|---|---|---|---|---|
nombre | VARCHAR | 29.83 % | 72,944 | |
etiqueta | VARCHAR | 0.03 % | 123 | |
persi_0302 | VARCHAR | 78.84 % | 3 | 02 · 01 · 03 |
jerar_0302 | VARCHAR | 78.84 % | 4 | 04 · 03 · 02 · 01 |
id_curso | VARCHAR | 98.06 % | 433,674 | |
id_ng | DOUBLE | 0.02 % | 65 | Range: 1652989.0 → 4040056.0 |
f_alta | VARCHAR | 100 % | 322 | |
compo_0302 | VARCHAR | 78.84 % | 3 | 01 · 04 · 02 |
tipo_0305 | VARCHAR | 21.16 % | 4 | 02 · 04 · 01 · 03 |
situa_0305 | VARCHAR | 21.16 % | 3 | 02 · 01 · 03 |
estad_0305 | VARCHAR | 21.16 % | 3 | 01 · 04 · 02 |
subcapa | VARCHAR | 100 % | 2 | rio · cauce_artificial |
prov_code | VARCHAR | 100 % | 53 | |
prov_name | VARCHAR | 100 % | 53 | |
prov_aprox | BOOLEAN | 100 % | 2 | false · true |
_fuente | VARCHAR | 100 % | 1 | ign |
_fecha_captura | DATE | 100 % | 1 | 2026-08-22 |
_licencia | VARCHAR | 100 % | 1 | CC-BY-4.0 |
_atribucion | VARCHAR | 100 % | 1 | Obra derivada de BTN 2026 |
bbox | STRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE) | 100 % | — | |
geometry | GEOMETRY(‘EPSG:4326’) | 100 % | — |