qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.59k stars 3.01k forks source link

Identify Features not working on features that have changed outside QGIS in a delimited text data source #26407

Open qgib opened 6 years ago

qgib commented 6 years ago

Author Name: Kim Frankcombe (@geokimbo) Original Redmine Issue: 18519 Affected QGIS version: 3.0.0 Redmine category:data_provider/delimitedtext


I loaded a point dataset into QGis 3 from an ACSII text file. I then regenerated the point file as I'd put it in the wrong place. I clicked the refresh button on the toolbar and my points moved to the new location as expected. However on selecting the Identify Features tool I was only able to select points that would have lain within the original limits of the data prior to the refresh. I saved the project, exited and opened it up again and could select all points.

Without looking at the code my interpretation would be that on importing the data a metaarray was created with the X and Y limits of that dataset. On refreshing using the same date file name and structure but with different data points the metaarray is not being updated?? I suspect this is also the cause of an older issue with QGis 2 in that refreshing a file with the same file name and structure but more points only plots the number of points in the initial input file. We have worked around that by removing that object from the Layers and then re-loading it from scratch. The downside is that if you have created a thematic map using that data you have to go through the process of reclassifing it in its Properties.

qgib commented 6 years ago

Author Name: Kim Frankcombe (@geokimbo)


Steps to reproduce. Create an ASCII point file Load to QGis Outside of QGis edit the file and move the southern most point 1km to the south. Hit the refresh button in QGis and you should see the feral point in the south Select the info tool and try and click on it.

alexbruy commented 12 months ago

Is this still an issue? I can't reproduce with the latest master (a2643b801c9b3a765ce5e0fabd235762f25aa7fe).

github-actions[bot] commented 11 months ago

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue. In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue. If there is no further activity on this issue, it will be closed in a week.

geokimbo commented 11 months ago

It is still an issue. On testing this I found a second issue, possibly related. Way to confirm; Create a simple text file as below east,north,att1,att2,att3 300000,500000,1,2,3.5 import into qgis as delimited text using any UTM based CRS - yes I know that the northing is too small Check you can see the attributes. Edit the file using a text editor and add a third line 300100,500100,1,2,3 Hit the refresh in Qgis. I only see one dot. Click on the point with the info tool and you'll get attributes for both points even though the co-ordinate output on the status bar at the bottom shows you are moving less than a metre from the point. QGis is plotting both points in the same place. I'm testing this on QGis 3.32.3 on Ubuntu 22.04 but saw the original behaviour last week on Ubuntu 20.04 and QGis 3.28?

Cheers Kim