Docs
Contents

Ports

What it is

Spain’s 805 ports and docks as footprints, all named. 72 belong to the Trans-European Transport Network (TEN-T) and 61 are classified as core ports of general interest. The UN/LOCODE is in codigo for 286 of them (format UN/LOCODE:VDE), the identifier used to join maritime traffic and customs data. Ownership breaks down as 259 regional, 105 State, 22 port authority, 8 military and 1 island council. ⚠ 410 come without ownership: mostly minor facilities and marinas, not an administrative gap.

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

IDes_transportes_puertos
Records805
Size2.9 MB
GeometryPOLYGON
CRSEPSG:4326
Versionv/2026-08
Sourceign
Upstream layerign:btn0657s_puerto
LicenceCC-BY-4.0

Extent: -17.992668, 27.63845 → 4.29828, 43.772121

Download

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

sha256 of this version:

3bac60e1528bfcc057a6cdc7c5cbbe622319e82ca454f3558a7c10e4de1b463d

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
nombreVARCHAR100 %590
id_puertoDOUBLE100 %644Range: 30140000001.0 → 540060000003.0
id_areaDOUBLE100 %805Range: 30140000001.0 → 540060000003.0
f_altaVARCHAR100 %52026/02/23 · 2026/02/27 · 2026/06/23 · 2024/07/17 · 2024/07/19
nom_alternVARCHAR7.58 %55
darsenaVARCHAR18.01 %93
id_pigVARCHAR13.04 %43
codigoVARCHAR35.53 %191
estad_0657VARCHAR100 %301 · 02 · 03
titul_0657VARCHAR100 %699 · 02 · 01 · 07 · 08 · 04
rtent_0657VARCHAR100 %202 · 01
clpig_0657VARCHAR100 %399 · 01 · 02
estadVARCHAR100 %3EN USO · EN CONSTRUCCIÓN · FUERA DE SERVICIO
titulVARCHAR100 %6NO APLICABLE/NO DISPONIBLE · COMUNIDAD AUTÓNOMA · ADMINISTRACIÓN GENERAL DEL · AUTORIDAD PORTUARIA · MILITAR · CABILDO-CONSELL INSULAR
rtentVARCHAR100 %2NO RED TEN-T · RED TEN-T
clpigVARCHAR100 %3NO APLICABLE/NO DISPONIBLE · PRINCIPAL · NO PRINCIPAL
prov_codeVARCHAR100 %27
prov_nameVARCHAR100 %27
prov_aproxBOOLEAN100 %2false · true
_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 %—