openaq / openaq-cli

OpenAQ command line interface
MIT License
3 stars 0 forks source link

`--clip` option #33

Open russbiggs opened 1 year ago

russbiggs commented 1 year ago

As a higher level feature atop the --bbox option an option to pass a GeoJSON polygon or multi-polygon could save users a number of steps to define a bounding box. The proposed flow would be as follows:

Additionally, after receiving the results the CLI could clip the result set to the input polygon. An optional --no-clip could also be included to bypass the final clipping, making geojson a shortcut to generating a bounding box only.

russbiggs commented 1 year ago

I'm now leaning more to the option name --clip after reviewing a couple other CLIs with similar functionality this seems a bit more standard. It will also have the advantage of eventually allowing multiple file types, not just GeoJSON.

Instead of the --no-clip option i think we should instead overload the --bbox to allow GeoJSON polygon input.