Docs
Contents

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

IDes_hidrografia_cursos_agua
Records578,513
Size683.9 MB
GeometryLINESTRING
CRSEPSG:4326
Versionv/2026-08
Sourceign
Upstream layerign:btn0302l_rio
LicenceCC-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/download

sha256 of this version:

e957990a781a838cdaad6e7159b30d9653971154556430f6519df5ed542b0fa0

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
nombreVARCHAR29.83 %72,944
etiquetaVARCHAR0.03 %123
persi_0302VARCHAR78.84 %302 · 01 · 03
jerar_0302VARCHAR78.84 %404 · 03 · 02 · 01
id_cursoVARCHAR98.06 %433,674
id_ngDOUBLE0.02 %65Range: 1652989.0 → 4040056.0
f_altaVARCHAR100 %322
compo_0302VARCHAR78.84 %301 · 04 · 02
tipo_0305VARCHAR21.16 %402 · 04 · 01 · 03
situa_0305VARCHAR21.16 %302 · 01 · 03
estad_0305VARCHAR21.16 %301 · 04 · 02
subcapaVARCHAR100 %2rio · cauce_artificial
prov_codeVARCHAR100 %53
prov_nameVARCHAR100 %53
prov_aproxBOOLEAN100 %2false · true
_fuenteVARCHAR100 %1ign
_fecha_capturaDATE100 %12026-08-22
_licenciaVARCHAR100 %1CC-BY-4.0
_atribucionVARCHAR100 %1Obra derivada de BTN 2026
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—