Skip to content

Instantly share code, notes, and snippets.

@akhenakh
Created May 10, 2023 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhenakh/e9dfefd28cdef46708fd849a7d4ea57f to your computer and use it in GitHub Desktop.
Save akhenakh/e9dfefd28cdef46708fd849a7d4ea57f to your computer and use it in GitHub Desktop.
Exploding GeoJSON feature collection to feature with Benthos
input:
label: input_geojson
stdin:
codec: all-bytes
max_buffer: 1e+06
pipeline:
processors:
- mapping: root = this.features
- unarchive:
format: json_array
output:
label: out
stdout:
codec: lines
@akhenakh
Copy link
Author

akhenakh commented May 10, 2023

cat collections.geojson | benthos -c featurecollection.yaml > features.geojsonseq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment