GeoJSON-Seq 📋

GeoJSON Sequences (Newline-delimited)

Open Beta
.geojsonl · application/geo+json-seq

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

立即导出 GeoJSON-Seq ✨ Open Beta — 免费无限制

主要特点

行分隔格式
流式处理
解析简易
兼容 ndjson
GeoJSON-Seq 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 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)文件:

💻jq 💻ndjson-cli 💻Tippecanoe 💻GDAL/OGR 💻Python (json) 💻Node.js

格式规格

谁在使用 GeoJSON-Seq 地图

🏗
流式处理
The file is read line by line, so memory does not depend on the size of the export.
💻
大数据管道
A ready input for Spark, Kafka and tippecanoe, where data comes as a stream of records.
📊
日志记录
Records are appended to the end and move on down the line as they arrive.
🎨
jq / ndjson 处理
Every line is a self-contained JSON, so the usual command line utilities work with no adaptation.
🗺
ETL 工作流
Splitting, filtering and loading in batches are done with standard tools, without intermediate conversions.

如何导出 GeoJSON-Seq

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 GeoJSON-Seq
从 127 种可用导出格式中选择 GeoJSON Sequences (Newline-delimited)
3
导出
点击导出,1–5 分钟内收到您的 .geojsonl 文件
4
下载
下载完成的 GeoJSON-Seq 文件并在 jq 中打开

导出后如何打开

GeoJSON-Seq 格式的热门地图

Free

导出 GeoJSON Sequences (Newline-delimited) 地图

从 OpenStreetMap 下载专业的 GeoJSON-Seq 地图。即时生成,任意区域。

免费 / 导出
立即导出 GeoJSON-Seq →

常见问题

GeoJSON-Seq 与 GeoJSON 有何区别?
GeoJSON-Seq 用在哪些场景?
How is .geojsonl different from .ndjson and .geojsons?
How do I tell which layer a feature came from?
Can such a file be opened straight in a browser map?

相关格式

经常一起导出

Related Articles