Docs
Contents

Seismic hazard NCSE-02

What it is

Whether a project must apply the Spanish seismic building code and how strictly, municipality by municipality: aceleracion is the basic seismic acceleration as a fraction of g and coeficient the contribution coefficient K. 8,183 municipal areas, of which 2,609 (31.9 %) carry an assigned value, between 0.04 and 0.25 g. What matters is how to read the blanks: a null is not missing data, it means the code assigns no value below 0.04 g, which is precisely the threshold above which NCSE-02 applies. Measured: Granada reaches 0.25 g across 168 municipalities, Málaga 0.21 across 100, Alicante and Murcia 0.16, Almería and Huelva 0.14; Madrid, Bilbao and A Coruña come back null. Two usage warnings. First, coeficient arrives wrapped in parentheses — (1.0), (1.1)… up to (1.4) — exactly as IGN publishes it: strip them before computing, and they were not stripped here so as not to alter what the source says. Second, and more important: the layer uses the 2002 municipal map. 39 municipalities of the current INE register have no entry of their own — later splits and mergers, from El Palmar de Troya to Valderrubio or Usansolo — whose value must be inherited from the parent municipality; and conversely, 81 IGN entries no longer exist as municipalities: mostly shared jurisdictions in Burgos, Navarre and Álava, all without an assigned acceleration, which is where the gaps in nombre and ine_pro come from. The geometry is the one IGN publishes, not a reconstruction.

According to the publishing agency

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

Áreas de peligrosidad 2002 — NCSE-02 Mapa de peligrosidad sísmica de la Norma de Construcción Sismorresistente NCSE-02, con la aceleración sísmica básica y el coeficiente de contribución asignados a cada término municipal.

At a glance

IDes_geologia_ncse02
Records8,183
Size7.5 MB
GeometryMULTIPOLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceign
Upstream layerign:HazardArea2002.NCSE-02
LicenceCC-BY-4.0

Extent: -18.161181, 27.637819 → 4.328054, 43.790004

Download

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

sha256 of this version:

db76e6749de14d717ceb61cb85c86f2e56683aa79dc11cac79e220ac8ccacd88

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
gidBIGINT100 %8,183Range: 1 → 8191
ine_munVARCHAR100 %8,183
ine_proVARCHAR97.79 %51
nombreVARCHAR99.03 %8,087
xVARCHAR31.88 %2,608
yVARCHAR31.88 %2,609
aceleracionVARCHAR31.88 %22
coeficientVARCHAR31.88 %5(1.0) · (1.3) · (1.1) · (1.2) · (1.4)
prov_codeVARCHAR100 %52
prov_nameVARCHAR100 %52
prov_aproxBOOLEAN100 %1false
_fuenteVARCHAR100 %1ign
_fecha_capturaDATE100 %12026-08-22
_fecha_edicionDATE100 %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 %—