Bug report #13749
Add csv layer: points not created
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Data Provider/Delimited Text | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | Yes | Copied to github as #: | 21776 |
Description
[QGIS 2.10.1 / d20c5b7 / Windows 7 64 b]
Good morning,
Since upgrading to 'Pisa', I cannot add delimited text layers.
Specifically (using the attached example):
1) click on "add delimited text layer"
2) dialog opens, browse to file, fill in the infos (cf. 2nd attachment)
3) the layer does appear in the layer list but (a) no points are created, (b) QGIS does not ask about the CRS, and it is not possible to set it using right click|set layer CRS; (c) when double-clicking on the layer to go to the properties, the "style" and "labels" tabs are empty (totally blank).
The CRS issue is reminiscent of #13582, but that may just be me...
Associated revisions
Fix delimited text layers set to unknown geometry type if first row has
null geometry (fix #13749)
Fix delimited text layers set to unknown geometry type if first row has
null geometry (fix #13749)
(cherry-picked from 743964393450178289e6717d67cdba04c6206e23)
History
#1 Updated by Jeff Moyen about 9 years ago
It's still there in 2.12, bu the way (just noticed the new version and tried !)
#2 Updated by Giovanni Manghi about 9 years ago
- Affected QGIS version changed from 2.10.1 to master
- OS version deleted (
2.10.1) - Operating System deleted (
windows 7) - Target version set to Future Release - High Priority
- Priority changed from Normal to Severe/Regression
- Category set to Data Provider/Delimited Text
Confirmed, the bug appeared on 2.10 and still present on master.
#3 Updated by Nyall Dawson about 9 years ago
- Status changed from Open to Closed
Fixed in changeset 743964393450178289e6717d67cdba04c6206e23.
#4 Updated by Jeff Moyen about 9 years ago
Hi,
In fact it is nearly fixed: if the first line of the file (after headers) happens to have missing values for X and Y, no points are created -- even if all the other lines in the file do include X and Y information. There is an easy workaround, of course (make sure the first line of the file does contain geographic info), but it would be nicer, I'd say, if the system was able to recognize that there is X and Y data in other lines.
Jeff
#5 Updated by Nyall Dawson about 9 years ago
Are you saying the bug is still present in the latest nightly snapshots?
#6 Updated by Jeff Moyen about 9 years ago
- File file_that_does_not_works.txt added
- File file_that_works.txt added
- File qgis.jpg added
Sorry for not having been clear.
Using a version downloaded today (= the windows 64b installer from QGIS website,
QGIS code revision cd9d645)
1) If the file does have a first line with missing coordinates -- ex. file_that_does_not_work.txt, attached. Point features are not created, the file is attached as a table.
2) If the first line of the file has coordinates (and even if there are missing coords further down, cf. file_that_works.txt), point are created.
In other words, similar files with lines in different ordres do not give the same result...
Jeff