https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-04-23T19:44:22ZQGIS Issue TrackingQGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404692013-04-23T19:44:22ZChris Crookccrook@linz.govt.nz
<ul></ul><p>Thanks .. will look at this urgently!!</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404712013-04-23T22:10:19ZChris Crookccrook@linz.govt.nz
<ul></ul><p>Thanks .. will look at this urgently!!</p>
<p>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?</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404722013-04-23T22:53:42ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul></ul><p>For me, the record that is being placed at 0,0 is item #6460, row 2 in spreadsheet.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404772013-04-24T03:05:43ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><blockquote>
<p>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?</p>
</blockquote>
<p>here too</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404972013-04-24T19:53:39ZChris Crookccrook@linz.govt.nz
<ul></ul><p>Odd that I can't reproduce this. Couple of questions:<br />1) What is the code revision that you have built (Help|About)<br />2) What platform, compiler, etc are you running on<br />3) Are you saying also that the point on line 114 is not plotting at 0,0? If not, can you determine where it is plotting.<br />Thanks<br />Chris</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404982013-04-24T20:07:56ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul></ul><p>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:<br />- If I click on the single dot with the 'identity feature' tool, the identify results window does show point #=4869 as being the one placed at 0,0<br />- However, if I then open the feature form of the selected point (expend the (action) node and click on the 'view feature form' item), I see the attributes for point #=6460</p>
<p>Odd, very odd. As for your questions, I'm running a osgeo4w nightly build, revision 3bd21bc.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=404992013-04-24T20:10:29ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul></ul><p>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.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405122013-04-25T01:52:58ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Severe/Regression</i></li></ul><p>nirvn - wrote:</p>
<blockquote>
<p>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.</p>
</blockquote>
<p>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.</p>
<p>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.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405272013-04-25T09:14:23ZChris Crookccrook@linz.govt.nz
<ul></ul><p>Thanks for clarification - I'll investigate from the point of view of the delimited text provider, in case something weird is happening in that.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405292013-04-25T10:34:59ZChris Crookccrook@linz.govt.nz
<ul></ul><p>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.</p>
<p>Thanks for identifying and detailing this problem.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405392013-04-25T13:45:27ZChris Crookccrook@linz.govt.nz
<ul></ul><p>I've submitted a pull request (<a class="external" href="https://github.com/qgis/Quantum-GIS/pull/558">https://github.com/qgis/Quantum-GIS/pull/558</a>) to fix this, plus test cases to ensure that it stays fixed!<br />Thanks again.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405422013-04-25T15:05:44ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul></ul><p>Chris, that was fsst :) is the pull request also fixing the 0, 0 placement issue?</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405432013-04-25T15:37:15ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul></ul><p>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.</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=405452013-04-25T16:02:31ZChris Crookccrook@linz.govt.nz
<ul></ul><p>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!)</p> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=406512013-04-30T10:56:43ZChris Crookccrook@linz.govt.nz
<ul><li><strong>Pull Request or Patch supplied</strong> changed from <i>No</i> to <i>Yes</i></li></ul> QGIS Application - Bug report #7688: loading points layer via delimited text file (CSV format) results in first point placed at coordinate x=0, y=0https://issues.qgis.org/issues/7688?journal_id=406652013-05-01T16:34:35ZMathieu Pellerin - nIRVnirvn.asia@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>Verified as fixed, thanks Chris.</p>