GeoJSON-Seq 是 GeoJSON 的按行分隔变体,每一行都是一个独立的 Feature。非常适合流式处理、日志记录和大数据流水线。
主要特点

关于 GeoJSON-Seq 格式
GeoJSON-Seq (RFC 8142) is the same GeoJSON laid out line by line: one line is one whole feature. There is no common FeatureCollection wrapper, which means you do not have to read the entire file to get to the first feature.
This is a pipeline format. Such files are read line by line and processed as a stream: filtered with jq, fed to tippecanoe to build vector tiles, poured into Kafka or Spark, cut into pieces by line count. Memory usage does not depend on the size of the export.
The output is a single .geojsonl with the features of all the selected layers written one after another. Each has a _layer property with the name of its source layer, OpenStreetMap attributes are preserved, and coordinates are WGS84 (EPSG:4326) with six decimal places.
The format is good at exactly what ordinary GeoJSON is bad at on large volumes, and vice versa: you cannot put a .geojsonl straight into Leaflet — the lines are first assembled into a FeatureCollection or processed as a stream.
打开 GeoJSON-Seq 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 GeoJSON Sequences (Newline-delimited)(.geojsonl)文件:
格式规格
- 开放标准
- 支持 3D 坐标
- 无损(无质量损失)
- 存储要素属性
- 输出:1 个文件
- RFC 8142 GeoJSON Text Sequences (newline-delimited). Streamable line-by-line — ideal for big-data pipelines and incremental loading.
谁在使用 GeoJSON-Seq 地图
如何导出 GeoJSON-Seq
导出后如何打开
- jq — jq -c 'select(.properties._layer=="roads")' map.geojsonl > roads.geojsonl filters out the layer you need without loading the file into memory.
- Tippecanoe — tippecanoe -o map.mbtiles map.geojsonl builds vector tiles: the line-based format is its native input.
- QGIS and ogr2ogr — GDAL reads GeoJSONSeq out of the box: ogr2ogr -f GPKG out.gpkg map.geojsonl.
- Python — read the file line by line and parse json.loads(line): memory does not depend on the volume; to bring the whole layer up, use geopandas.read_file("map.geojsonl").
- Splitting it up — an ordinary split -l 100000 map.geojsonl part_ gives valid pieces: every line is self-contained.
GeoJSON-Seq 格式的热门地图
导出 GeoJSON Sequences (Newline-delimited) 地图
从 OpenStreetMap 下载专业的 GeoJSON-Seq 地图。即时生成,任意区域。
常见问题
相关格式
经常一起导出
Related Articles
GeoJSON-Seq (RFC 8142) format: streaming features — OSM export for big-data pipelines
GeoJSON-Seq (RFC 8142, 2017): stream of features, RS/LF delimiters, tippecanoe + BigQuery + Spark.
guideGeoJSON — Everything a Developer Needs to Know
Complete GeoJSON guide for developers: format structure, code examples with Leaflet, Mapbox and OpenLayers, getting data
guideGeoJSON: Complete Guide for Web Developers
What is GeoJSON, format structure, how to use with Leaflet and Mapbox, exporting OSM maps to GeoJSON.