6 releases
Uses new Rust 2024
| 0.6.2 | Oct 27, 2025 |
|---|---|
| 0.6.1 | Oct 16, 2025 |
| 0.6.0 | Oct 15, 2025 |
| 0.6.0-beta.2 | Oct 13, 2025 |
| 0.1.0-dev | Oct 10, 2025 |
#3 in #20
179 downloads per month
Used in geodatafusion-geojson
1MB
20K
SLoC
geoarrow-geojson
This crate provides two types of writers.
-
GeoJsonWriterstreams Arrow record batches as a GeoJSON FeatureCollection, writing the collection header once and appending each batch of features. Use it when you need a single GeoJSON document containing all features.Example output (formatted for readability):
{ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [30, 10] }, "properties": { "count": 10 } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [40, 20] }, "properties": { "count": 20 } } ] } -
GeoJsonLinesWriterwrites each feature as a standalone GeoJSON object separated by newlines, making it suitable for line-delimited sinks and streaming pipelines.Example output:
{"type":"Feature","geometry":{"type":"Point","coordinates":[30,10]},"properties":{"count":10}} {"type":"Feature","geometry":{"type":"Point","coordinates":[40,20]},"properties":{"count":20}}
Dependencies
~14MB
~254K SLoC