GeoJSON 💻

GeoJSON

Open Beta
.geojson · application/geo+json

GeoJSON és un format de geodades obert basat en JSON. La solució estàndard per als desenvolupadors web, compatible amb Leaflet, Mapbox, OpenLayers, D3.js i qualsevol programari SIG.

Exporta GeoJSON ara ✨ Beta oberta — gratuït, sense límits

Característiques clau

Format JSON llegible per a humans
Propietats d'entitat (noms, tipus)
Projecció WGS84
Compatibilitat nativa amb navegadors
Example GeoJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Sobre el format 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.

Quin programa obre els fitxers GeoJSON

Els programes i les aplicacions següents poden obrir, editar i treballar amb fitxers GeoJSON (.geojson) exportats des d'OSM2CDR:

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

Format specifications

Qui utilitza els mapes GeoJSON

🏗
Desenvolupament web
The native format for Leaflet, Mapbox and OpenLayers: the map is attached to a site with a couple of lines of code.
💻
Mapes interactius
Vector layers with attributes for clickable maps with tooltips and filters.
📊
Visualització de dades
A ready source for D3.js and dashboards: boundaries, POI and routes in standard JSON.
🎨
API i serveis
A lightweight geodata exchange format for REST APIs and microservices.
🗺
Ciència de dades
Loading city geometry into GeoPandas and QGIS for spatial analysis.

Com exportar GeoJSON

1
Selecciona l'àrea
Dibuixa un rectangle o un polígon al mapa interactiu d'osm2cdr.ru
2
Tria GeoJSON
Tria GeoJSON de la llista de 127 formats d'exportació disponibles
3
Exporta
Fes clic a Exporta i rep el fitxer .geojson en 1-5 minuts
4
Descarrega
Descarrega el fitxer GeoJSON llest i obre'l amb Leaflet

Com obrir el fitxer després de l'exportació

Mapes populars en GeoJSON

Free

Obtingues exportacions de mapes GeoJSON

Descarrega mapes GeoJSON professionals d'OpenStreetMap. Generació instantània, qualsevol àrea.

Gratuït / exportació
Exporta GeoJSON ara →

Preguntes freqüents

Puc obrir un GeoJSON al navegador?
GeoJSON és gratuït?
Puc carregar un GeoJSON a 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?

Compara amb altres formats

Formats relacionats

Sovint exportats junts

Related Articles