Discard Empty Fields: behaviour, default status, name #26901
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Feedback
Waiting on the submitter for answers
stale
Uh oh! Seems this work is abandoned, and the PR is about to close.
Author Name: Simon Dedman (@SimonDedman)
Original Redmine Issue: 19071
Affected QGIS version: 3.0.3
Redmine category:data_provider/delimited_text_
Imagine a csv with columns:
lat, long, 2016_data, 2017_data, 2018_data, Total
Where a selection of the 2016:18 cells are blank.
If one imports this as a layer and doesn't notice the 'discard empty fields' option is on (by default, 2.18.20 & 3.0.3), Qgis will not discard empty FIELDS, as defined elsewhere (e.g. layer properties) as being the columns of data, but will discard empty CELLS.... and then slide all cells left to fill the blanks, such that e.g.:
lat, long, 2016_data, 2017_data, 2018_data, Total
la1 lo1 2 =blank= 3 5
would become
lat, long, 2016_data, 2017_data, 2018_data, Total
la1 lo1 2 3 5 =blank=
and therefore plotting Total would show you that there are no data when you can see from your original csv that there certainly are.
This may be the correct implementation for fields for other file types but is very much counterintuitive and bad for csvs. Please could:
Thanks.
The text was updated successfully, but these errors were encountered: