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
| ID | es_hidrografia_masas_agua |
| Records | 140,335 |
| Size | 129.4 MB |
| Geometry | POLYGON |
| CRS | EPSG:4326 |
| Version | v/2026-08 |
| Source | ign |
| Upstream layer | ign:btn0316s_laguna |
| Licence | CC-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/downloadsha256 of this version:
341c70e8e0e0318e894d0b129d41b452278b20e633674df7f21a50ec8f44af11Query 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 | 11.42 % | 11,210 | |
tipo_0316 | VARCHAR | 91.63 % | 2 | 01 · 02 |
regim_0316 | VARCHAR | 91.63 % | 2 | 02 · 01 |
id_ng | DOUBLE | 0.73 % | 933 | Range: 377.0 → 4038955.0 |
f_alta | VARCHAR | 100 % | 287 | |
etiqueta | VARCHAR | 0.24 % | 311 | |
zmax_0325 | VARCHAR | 1.85 % | 1,208 | |
id_embalse | VARCHAR | 1.20 % | 1,424 | |
estad_0325 | VARCHAR | 1.86 % | 3 | 01 · 03 · 02 |
persi_0302 | VARCHAR | 4.01 % | 2 | 02 · 01 |
id_curso | VARCHAR | 5.85 % | 4,449 | |
tipo_0319 | VARCHAR | 0.66 % | 2 | 01 · 02 |
subcapa | VARCHAR | 100 % | 5 | laguna · rio_poligono · embalse · cauce_artificial · humedal |
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 % | — |