Docs
Contents

Water bodies

What it is

Standing-water polygons from the BTN, at IGN positional accuracy: useful for measuring real distances to surface water — landscape impact, routing constraints, availability — without depending on a remote service. The type is coded in tipo_0316 following the BTN dictionary. ⚠ Partial coverage: the file currently holds lakes only (btn0316s_laguna); reservoirs (btn0325s_embalse, 2,607), rivers as polygons (btn0302s_rio, 5,633), artificial channels (btn0305s_cau_art, 2,576) and wetlands (btn0319s_humeda, 928) are not included, even though the BTN publishes them.

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_masas_agua
Records140,335
Size129.4 MB
GeometryPOLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceign
Upstream layerign:btn0316s_laguna
LicenceCC-BY-4.0

Extent: -18.149275, 27.703012 → 4.276227, 43.746199

Download

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

sha256 of this version:

341c70e8e0e0318e894d0b129d41b452278b20e633674df7f21a50ec8f44af11

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
nombreVARCHAR11.42 %11,210
tipo_0316VARCHAR91.63 %201 · 02
regim_0316VARCHAR91.63 %202 · 01
id_ngDOUBLE0.73 %933Range: 377.0 → 4038955.0
f_altaVARCHAR100 %287
etiquetaVARCHAR0.24 %311
zmax_0325VARCHAR1.85 %1,208
id_embalseVARCHAR1.20 %1,424
estad_0325VARCHAR1.86 %301 · 03 · 02
persi_0302VARCHAR4.01 %202 · 01
id_cursoVARCHAR5.85 %4,449
tipo_0319VARCHAR0.66 %201 · 02
subcapaVARCHAR100 %5laguna · rio_poligono · embalse · cauce_artificial · humedal
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 %—