Lithology (MAGNA 50)
What it is
The 778,709 lithological polygons of Spain’s 1:50,000 Geological Map, covering the 1,099 sheets of the MAGNA series. This is the layer that says what the ground is made of — limestone, marl, granite, alluvium — and therefore the basis for any reading of foundations, excavability or soil behaviour. Read it alongside es_hidrografia_hidrogeologia, which translates that lithology into permeability. ⚠ DLO, the lithological description, arrives unnormalised: it mixes case for the same value (Calizas 4,683 records against CALIZAS 2,670) and carries 17,637 rows with a blank space instead of a value. Group by lithology only after normalising; codes are delivered exactly as IGME publishes them. ⚠ It is 1:50,000: geological-map scale, not parcel-level geotechnical survey scale.
According to the publishing agency
Official text, in Spanish, exactly as the upstream service publishes it:
IGME - Mapa Geológico de España 50.000 (MAGNA) El Mapa Geológico de España se distribuye en hojas de escala 1:50.000 para la península y 1:25.000 en los territorios insulares. Incluye las unidades cronolitoestratigráficas separadas por distintos tipos de contactos: normal o concordante, discordante y mecánico o intrusivo.
At a glance
| ID | es_geologia_litologia |
| Records | 778,709 |
| Size | 700.5 MB |
| Geometry | MULTIPOLYGON, POLYGON |
| CRS | EPSG:4326 |
| Version | v/2026-08 |
| Source | igme |
| Upstream layer | igme:IGME_MAGNA_50 |
| Licence | Licencia de uso CN IGME 2022 (libre, gratuita, uso comercial) |
Extent: -18.208334, 27.608334 → 4.331386, 43.833319
Download
curl -H "x-api-key: $GEOVIS_API_KEY" \ https://datos.geovis.es/v1/data/datasets/es_geologia_litologia/downloadsha256 of this version:
b5ea9fdbee9d3c771817879b559b56e75dfcc3215cc83e13c2ae9741cc75d9cbQuery 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 |
|---|---|---|---|---|
HOJA | VARCHAR | 100 % | 1,099 | |
ID | INTEGER | 100 % | 276 | Range: 0 → 50000 |
DLO | VARCHAR | 100 % | 23,102 | |
OBJECTID | INTEGER | 100 % | 778,709 | Range: 1 → 778709 |
prov_code | VARCHAR | 100 % | 53 | |
prov_name | VARCHAR | 100 % | 53 | |
prov_aprox | BOOLEAN | 100 % | 2 | false · true |
_fuente | VARCHAR | 100 % | 1 | igme |
_fecha_captura | DATE | 100 % | 1 | 2026-08-22 |
_fecha_edicion | DATE | 100 % | 1 | 2026-08-22 |
_licencia | VARCHAR | 100 % | 1 | Licencia de uso CN IGME 20 |
_atribucion | VARCHAR | 100 % | 1 | Origen de los datos: ©CN I |
bbox | STRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE) | 100 % | — | |
geometry | GEOMETRY(‘EPSG:4326’) | 100 % | — |