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

Implement logic to export into CSV #34

Closed
roberto-butti opened this issue Sep 29, 2019 · 3 comments
Closed

Implement logic to export into CSV #34

roberto-butti opened this issue Sep 29, 2019 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest Issues ready for new contributors to work on for Hacktoberfest

Comments

@roberto-butti
Copy link
Owner

Implement logic to export data uploaded into CSV .
We will need a UI to allow to the user to select the export format (Geojson - default- , or CSV).

@roberto-butti roberto-butti added enhancement New feature or request good first issue Good for newcomers Hacktoberfest Issues ready for new contributors to work on for Hacktoberfest labels Sep 29, 2019
@YasiOnFire
Copy link

Hey, may i try this one please?

@roberto-butti
Copy link
Owner Author

@YasiOnFire sure! Thank you!
In Fit.vue file as a Vue component we have the data object with geojson attribute (this.geojson). That geojson is produced by fit and gpx parsing. I think that we need to parse that geojson and export to csv.
Each row of csv could be a point . If you take a look on geojson you will se a list fo Features.
Screenshot 2019-10-07 at 09 03 34

Each Feature has 2 elements, properties and geometry.
For lat and long (2 mandatory column for CSV) you can take geometry.coordinates[0].
For other columns of CSV you can take properties object. As object could be nested you can flat all properties.

@roberto-butti
Copy link
Owner Author

Thank you @YasiOnFire ! Great implementation. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers Hacktoberfest Issues ready for new contributors to work on for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants