Open michaelkirk opened 2 years ago
I sometimes find myself wanting formatted geojson, like what is output by serde_json::to_string_pretty.
serde_json::to_string_pretty
Currently, I reach for an external tool to solve this, which is fine, but I think it'd be nice if geozero could handle this.
I'm imagining something like:
geozero --csv-geometry-column=geometry my_input.csv --geojson-pretty-output my_output.geojson
Currently writers are free in their output options. So the GeoJsonWriter can be extended with a pretty flag. For a common flag for text based outputs we would probably need an output trait.
GeoJsonWriter
pretty
I sometimes find myself wanting formatted geojson, like what is output by
serde_json::to_string_pretty
.Currently, I reach for an external tool to solve this, which is fine, but I think it'd be nice if geozero could handle this.
I'm imagining something like: