Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infer output file format type when not specified #39

Open
sgreenbury opened this issue Jun 5, 2024 · 1 comment
Open

Infer output file format type when not specified #39

sgreenbury opened this issue Jun 5, 2024 · 1 comment

Comments

@sgreenbury
Copy link
Contributor

As mentioned in #22, allow inference of the output file format given a provided output file name (e.g. using the suffix).

@penelopeysm
Copy link
Member

penelopeysm commented Jul 4, 2024

An interface that makes sense to me (imo):

--output-file --output-format Outcome
<empty> <empty> prints csv (?) to stdout
<empty> geojson prints geojson to stdout
a.csv <empty> outputs csv to a.csv
a.geojson <empty> outputs geojson to a.geojson
a.geojson geojson outputs geojson to a.geojson
a.geojson csv outputs csv to a.geojson with a warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog:
Development

No branches or pull requests

2 participants