Docs
Contents

Administrative boundaries

What it is

Municipalities, provinces, autonomous communities and the country outline in a single file, with the tier in nivel and the INE code in cod_ine. This is the corpus-wide reference layer: the prov_code of every other layer is computed against it. Measured: 8,213 municipalities, 53 provinces and 20 autonomous-tier units — the 17 communities plus Ceuta, Melilla and “territories not attached to any autonomous community”; the seven sovereign islets and Gibraltar are separate, with nivel = otro. ⚠ IGN publishes under CC-BY 4.0 and the attribution “BTN 2026 CC-BY 4.0 ign.es” is mandatory and must be visible at the foot of the map.

According to the publishing agency

Official text, in Spanish, exactly as the upstream service publishes it:

Unidades administrativas de España Unidades administrativas y límites administrativos con tres niveles de administración (comunidad autónoma, provincia y municipio). Esta información forma parte del Equipamiento Geográfico de Referencia Nacional, según se recoge en el Anexo I, parte 1 de LISIGE: Unidades administrativas en que se dividan las áreas en las que los Estados miembros tienen y/o ejercen derechos jurisdiccionales, a efectos de administración local, regional y nacional, separadas por límites administrativos. Servicio de descarga Inspire de acceso directo conforme con ISO 19142 Web Feature Service e ISO 19143 Filter Encoding.

At a glance

IDes_admin_limites
Records8,294
Size44.1 MB
GeometryMULTIPOLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceign
Upstream layerign:au_AdministrativeUnit
LicenceCC-BY-4.0

Extent: -18.161181, 27.637723 → 4.327785, 43.79238

Download

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

sha256 of this version:

e13cfb239de9dd3c2a5eff5ed7bae351978e989678cd2885928c9454f373a70a

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
cod_nacionalBIGINT100 %8,294Range: 34000000000 → 34205454007
cod_ineVARCHAR99.02 %8,141
nombreVARCHAR100 %8,231
nivelVARCHAR100 %5municipio · provincia · ccaa · otro · pais
ccaa_codeVARCHAR100 %21
prov_codeVARCHAR100 %54
_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 %—