Created by: reidab
This adds support for generating newline-delimited GeoJSON output from csvjson
with the --stream
flag. Both the batch (agate table based) and streaming output modes are supported. As a side effect, --key
is also now supported with --stream
, but only when --lat
and --lon
are present.
This PR ended up being a larger refactor of csvjson
than I'd expected, teasing apart its main()
method into a bunch of extracted parts to avoid duplication. I think the control flow in main()
ends up in a much clearer spot, but I'm happy to revise things if this is more of a rewrite than you want to consider.