Docs
Contents

ANAS road graph — motorways and state roads

What it is

The 36,625 segments of the Italian state road network managed by ANAS: motorways and state roads, excluding provincial and municipal roads. 29,797 km measured on the published geometry. It matters for a renewable project on two counts: it is the construction access route — an abnormal load carrying blades or a transformer needs the state network — and it is the reference for the fasce di rispetto stradali of the Highway Code, which forbid building within 60 m of the edge on a motorway and 30 m on a state road outside built-up areas. ⚠ The edition is December 2015, even though the file was re-uploaded on 14 December 2022: the shapefile’s internal dates are 21-12-2015. The MIT portal publishes a single edition — its CKAN returns one dataset with one resource — so there is no newer one we have missed: there simply is none. ⚠ COD_COM and COM_SIGLA are not municipalities, they are ANAS’s 20 compartimenti — TO, AO, MI, VE, TS, GE, BO, FI, PG, AN, RM, AQ, CB, NA, BA, PZ, CZ, PA, CA and SARC (Sardinia, which is not even a provincial code). Joining them to a gazetteer by province code yields false results. 🔴 COD_STRA is not a unique key and it is also dirty. 321 rows share 123 codes — SS16 ADRIATICA appears 14 times, once per compartimento stretch — and 2,124 of the 36,625 values do not follow the <compartimento>_<id> form of the rest. One of them is literally the date 18/11/2015, on a roundabout of the SS32/SS33 in the Turin compartimento. And two rows carry COM_SIGLA = '15', a number where every other value is letters. None of this has been corrected: it is what the body publishes. ⚠ SHAPE_LEN is kept with a caveat. It is the length ANAS computed in UTM zone 32N for the whole of Italy, including Apulia and Sicily, which fall in zone 33. Checked against the geometry in EPSG:3035, the total deviation is +0.18 % (29,850 km against 29,797), so it works as an order of magnitude; for per-segment lengths in the south-east it is better recomputed. AMM sits at 96 % on the value 99 and the dataset publishes no legend for it. No geometry arrives invalid and none repeats. Source: Ministero delle Infrastrutture e dei Trasporti, CC BY 4.0. 🔴 It does NOT cover Trentino-Alto Adige: zero segments in the whole region, and the data is correct. Legislative Decree 320/1997 transferred management of the state roads from ANAS to the autonomous provinces of Trento and Bolzano with effect from 1 July 1998 and abolished the region’s ANAS compartimento; that is why COM_SIGLA has exactly 20 compartimenti and none of them is Trentino’s. Anyone looking here for the SS12 in Val d’Adige, the SS38 dello Stelvio or the SS48 delle Dolomiti will not find them — not because they are missing but because they are not ANAS’s. For the same reason the Aosta Valley has only 95 segments. The other 19 regions have data, led by Apulia (7,798), Campania (3,519) and Calabria (3,189).

The upstream service publishes no abstract for this layer.

At a glance

IDit_carreteras_anas
Records36,625
Size136.0 MB
GeometryLINESTRING, MULTILINESTRING
CRSEPSG:4326
Versionv/2027-13
Sourcemit_aeroporti
Upstream layermit:grafo_stradale_anas
LicenceCC-BY-4.0

Extent: 6.710388, 36.715399 → 18.496715, 46.65581

Download

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

sha256 of this version:

2e258f73dd7902b89bcd542b1787be3eb2192461fe9696b7b2015341e8480434

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_STRAVARCHAR100 %36,427
COM_SIGLAVARCHAR100 %21
SECONDONOMVARCHAR99.99 %2,620
COD_COMVARCHAR100 %20
AMMVARCHAR100 %1099 · 3 · 5 · 90 · 4 · 50 · 1 · 2
COD_INTVARCHAR100 %2,811
SHAPE_LENDOUBLE100 %36,625Range: 1.52966009296 → 366207.129871
_fuenteVARCHAR100 %1mit_aeroporti
_fecha_capturaDATE100 %12026-09-08
_fecha_edicionDATE100 %12026-09-07
_licenciaVARCHAR100 %1CC-BY-4.0
_atribucionVARCHAR100 %1Aeroporti Certificati — Mi
bboxSTRUCT(xmin DOUBLE, ymin DOUBLE, xmax DOUBLE, ymax DOUBLE)100 %—
geometryGEOMETRY(‘EPSG:4326’)100 %—