GeoJSON 💻

GeoJSON

Open Beta
.geojson · application/geo+json

GeoJSON er opið landfræðilegt gagnasnið byggt á JSON. Staðlaða lausnin fyrir vefþróendur, samhæft við Leaflet, Mapbox, OpenLayers, D3.js og hvaða GIS-hugbúnaði sem er.

Flytja út GeoJSON núna ✨ Opin beta-prófun — ókeypis, engar takmarkanir

Helstu eiginleikar

Læsilegt JSON-snið
Eiginleikar fyrirbæra (nöfn, gerðir)
WGS84-vörpun
Innbyggður vafrastuðningur
Example GeoJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Um GeoJSON-sniðið

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.

Hvaða forrit opnar GeoJSON-skrár

Eftirfarandi forrit geta opnað, breytt og unnið með GeoJSON (.geojson) skrár sem fluttar eru út úr OSM2CDR:

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

Format specifications

Hverjir nota GeoJSON-kort

🏗
Vefþróun
The native format for Leaflet, Mapbox and OpenLayers: the map is attached to a site with a couple of lines of code.
💻
Gagnvirk kort
Vector layers with attributes for clickable maps with tooltips and filters.
📊
Gagnamyndsetning
A ready source for D3.js and dashboards: boundaries, POI and routes in standard JSON.
🎨
API og þjónustur
A lightweight geodata exchange format for REST APIs and microservices.
🗺
Gagnavísindi
Loading city geometry into GeoPandas and QGIS for spatial analysis.

Hvernig á að flytja út GeoJSON

1
Veldu svæði
Teiknaðu rétthyrning eða marghyrning á gagnvirka kortinu á osm2cdr.ru
2
Veldu GeoJSON
Veldu GeoJSON úr listanum yfir 127 fáanleg útflutningssnið
3
Flytja út
Smelltu á Flytja út og fáðu .geojson-skrána þína eftir 1-5 mínútur
4
Sækja
Sæktu tilbúnu GeoJSON-skrána og opnaðu hana í Leaflet

Hvernig á að opna eftir útflutning

Vinsæl kort í GeoJSON

Free

Fáðu kortaútflutning í GeoJSON

Sæktu fagleg GeoJSON-kort úr OpenStreetMap. Tafarlaus kortagerð, hvaða svæði sem er.

Ókeypis / útflutningur
Flytja út GeoJSON núna →

Algengar spurningar

Get ég opnað GeoJSON í vafra?
Er GeoJSON ókeypis?
Get ég hlaðið GeoJSON inn í 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?

Berðu saman við önnur snið

Tengd snið

Oft flutt út saman

Related Articles