Docs
Contents

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

IDes_geologia_litologia
Records778,709
Size700.5 MB
GeometryMULTIPOLYGON, POLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceigme
Upstream layerigme:IGME_MAGNA_50
LicenceLicencia 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/download

sha256 of this version:

b5ea9fdbee9d3c771817879b559b56e75dfcc3215cc83e13c2ae9741cc75d9cb

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
HOJAVARCHAR100 %1,099
IDINTEGER100 %276Range: 0 → 50000
DLOVARCHAR100 %23,102
OBJECTIDINTEGER100 %778,709Range: 1 → 778709
prov_codeVARCHAR100 %53
prov_nameVARCHAR100 %53
prov_aproxBOOLEAN100 %2false · true
_fuenteVARCHAR100 %1igme
_fecha_capturaDATE100 %12026-08-22
_fecha_edicionDATE100 %12026-08-22
_licenciaVARCHAR100 %1Licencia de uso CN IGME 20
_atribucionVARCHAR100 %1Origen de los datos: ©CN I
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—