GeoJSON 💻

GeoJSON

Open Beta
.geojson · application/geo+json

GeoJSON è un formato aperto per dati geografici basato su JSON. La soluzione standard per gli sviluppatori web, compatibile con Leaflet, Mapbox, OpenLayers, D3.js e qualsiasi software GIS.

Esporta GeoJSON ora ✨ Open Beta — gratis, senza limiti

Caratteristiche principali

Formato JSON leggibile
Proprietà delle feature (nomi, tipi)
Proiezione WGS84
Supporto nativo nel browser
Example GeoJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Informazioni sul formato GeoJSON

GeoJSON is an open geodata format (RFC 7946) in which geography is written as ordinary JSON: an array of features, each with a geometry and a set of properties. A human can read it in a text editor, any programming language parses it in one line, and practically all web cartography understands it — Leaflet, Mapbox GL, OpenLayers, D3.js — with no plugins or converters.

An OSM map is exported to GeoJSON when you need the features themselves rather than a picture: to attach a layer to a website, compute statistics for a district, filter the categories you need, load the data into PostGIS or run it through GeoPandas. It is also the most convenient intermediate format: from it, ogr2ogr or QGIS will make SHP, GeoPackage, KML — anything you like.

The output is a single UTF-8 file: one FeatureCollection gathering all the layers of the selected area. Every feature keeps its OpenStreetMap attributes (name, type, tags) and a service property _layer with the name of its source layer — one line of filtering takes the data apart again into roads, buildings, water, greenery and points of interest. Coordinates are WGS84 (EPSG:4326), as the specification requires; the recorded precision is six decimal places, about ten centimeters on the ground: the file drops into any GIS and any web framework with no reprojection.

Quale programma apre i file GeoJSON

I seguenti programmi e applicazioni possono aprire, modificare ed elaborare i file GeoJSON (.geojson) esportati da OSM2CDR:

💻Leaflet 💻Mapbox 🌎QGIS 💻D3.js 💻Kepler.gl 💻GeoPandas

Format specifications

Chi usa le mappe GeoJSON

🏗
Sviluppo web
The native format for Leaflet, Mapbox and OpenLayers: the map is attached to a site with a couple of lines of code.
💻
Mappe interattive
Vector layers with attributes for clickable maps with tooltips and filters.
📊
Visualizzazione dei dati
A ready source for D3.js and dashboards: boundaries, POI and routes in standard JSON.
🎨
API e servizi
A lightweight geodata exchange format for REST APIs and microservices.
🗺
Data science
Loading city geometry into GeoPandas and QGIS for spatial analysis.

Come esportare in GeoJSON

1
Seleziona l'area
Disegna un rettangolo o un poligono sulla mappa interattiva su osm2cdr.ru
2
Scegli GeoJSON
Seleziona GeoJSON dall'elenco dei 127 formati di esportazione disponibili
3
Esporta
Fai clic su Esporta e ricevi il file .geojson in 1-5 minuti
4
Scarica
Scarica il file GeoJSON pronto e aprilo in Leaflet

Come aprire il file dopo l'esportazione

Mappe popolari in GeoJSON

Free

Ottieni esportazioni di mappe in GeoJSON

Scarica mappe GeoJSON professionali da OpenStreetMap. Generazione istantanea, qualsiasi area.

Gratis / esportazione
Esporta GeoJSON ora →

Domande frequenti

Posso aprire un GeoJSON nel browser?
GeoJSON è gratuito?
Posso caricare un GeoJSON in PostGIS?
How do I split the export back into layers?
Which projection do the coordinates arrive in?
What should I do if the file turns out too big for a browser?

Confronta con altri formati

Formati correlati

Esportati spesso insieme

Related Articles