-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0 #16604
Comments
Author Name: Chris Crook (@ccrook) Thanks .. will look at this urgently!! |
Author Name: Chris Crook (@ccrook) Thanks .. will look at this urgently!! Ok, I've looked at the file. I only get one record at 0,0, which is at line 114 in the input file (#=4869, row 85 in a spreadsheet), and that is indeed at 0,0. Can you confirm that it is the first record that appears to be at 0,0 when you look at the file? |
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) For me, the record that is being placed at 0,0 is item #6460, row 2 in spreadsheet. |
Author Name: Giovanni Manghi (@gioman)
here too |
Author Name: Chris Crook (@ccrook) Odd that I can't reproduce this. Couple of questions:
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Oh wow, that's super odd. Here's why I had a different result from you: I had the "[x] open feature form, if a single feature is identified" checked. I've unchecked it, and the story gets more confusing, but partly compatible with your observations:
Odd, very odd. As for your questions, I'm running a osgeo4w nightly build, revision 3bd21bc. |
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) The reason why we had different observations was probably because you were seeing attributes from the identity result window, while I was seeing attributes from the feature form window. Why these two are not the same given a same point is simply scary :) good this issue seems to be revealing a more fundamental problem. |
Author Name: Giovanni Manghi (@gioman) nirvn - wrote:
I can confirm this behavior and that is obviously something that has to be tagged as blocker. For now I'll tag this ticket as blocker, if after it is found that it is not the cause of the problem then please lower the priority and raise this issue with another ticket and/or in the dev mailing list. NOTE: when clicking with the identify tool on the "wrong" point, the coordinate that shows in the "derived" category are almost all the times wrong (very far from 0,0) and every time different from th previous identify operation. This does not seems to happen for the other points.
|
Author Name: Chris Crook (@ccrook) Thanks for clarification - I'll investigate from the point of view of the delimited text provider, in case something weird is happening in that. |
Author Name: Chris Crook (@ccrook) Ok - problem is that QgsFeatureRequest::FilterFid option was never implemented in the delimited text iterator, so whenever a specific feature is requested it will return the first feature :-( Easy fix, will upload patch shortly once I've built some test cases. Thanks for identifying and detailing this problem. |
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Chris, that was fsst :) is the pull request also fixing the 0, 0 placement issue? |
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) oh I see, just re checked attached csv, the point is placed correctly, it's lat / lon are zeroes. I was misled into thinking otherwise because of feature form fetching wrong data. |
Author Name: Chris Crook (@ccrook) Yup, that's it. The placement was all fine, its just the feature form was always fetching the first feature (I think it would have done that for any point!) |
Author Name: Chris Crook (@ccrook)
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV) Verified as fixed, thanks Chris.
|
Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 7688
Affected QGIS version: master
Redmine category:data_provider
The recent set of improvements for the delimited text file layer is fantastic. Refinements on CSV support is most welcome.
I just noticed an important issue with CSV support: first point extracted from first row is wrongly located at coordinate x=0, y=0 irrespective of the x and y value. The subsequent points / rows have proper coordinates.
To reproduce, open the attached CSV file, and note the first point being placed at coordinate 0,0.
The text was updated successfully, but these errors were encountered: