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

Add csvt files when csv files are used as algorithm output #26277

Open
qgib opened this issue Mar 8, 2018 · 1 comment
Open

Add csvt files when csv files are used as algorithm output #26277

qgib opened this issue Mar 8, 2018 · 1 comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Mar 8, 2018

Author Name: Håvard Tveite (@havatv)
Original Redmine Issue: 18387

Redmine category:processing/qgis


Some algorithms output csv files, and these often contain numeric fields. The output (csv) files are added to the layers panel and made available to the user. However, if there is no csvt file associated with a csv file, QGIS (GDAL/OGR) will assume that all the fields of the csv file are strings. Having numeric fields handled as strings is inconvenient for users, as they will not be able to for instance sort numerically, create graduated maps or do mathematics.

"Statistics by categories" is an example of an algorithm that outputs csv.

If a csvt file could be created alongside the csv file, QGIS (GDAL/OGR) should be able get the correct data type of each field, and the user would be able to work on the output table immediately and without data type problems.

This is relevant for both QGIS 2 and QGIS 3.

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2018

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from Unknown to Processing/QGIS
  • tracker_id was changed from 1 to 2

@qgib qgib added Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant