-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot select correct features in Virtual Layer #27662
Comments
Author Name: Joseph Liam (Joseph Liam) A related question had been asked on GIS Stack Exchange: https://gis.stackexchange.com/questions/261615/selection-feature-acting-weird-on-queried-layer-in-qgis |
Author Name: Gerhard Spieles (Gerhard Spieles) Same issue in Spatialite Views #22229 |
Author Name: Andrea Giudiceandrea (@agiudiceandrea) Did you try with QGIS 3.3.0-master? |
Author Name: Harrissou Santanna (@DelazJ) Can you try the query with naming the fields you want to add to the virtual layer ? cf https://docs.qgis.org/testing/en/docs/user_manual/managing_data_source/create_layers.html#supported-query-language
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Joseph Liam (Joseph Liam) Harrissou Santanna wrote:
Tried quering with naming fields in the expression (e.g. @select geometry, fieldName FROM "some_layer"@), same result when trying to select features. |
Author Name: Joseph Liam (Joseph Liam) Andrea Giudiceandrea wrote:
It seems to work on QGIS 3.2.0 at least, can't test master at the moment. I was hoping a fix for the LTR version. This is used in a plugin for QGIS 2.18 and was hoping for a fix until I have the time to port over to QGIS 3 :) |
Author Name: Harrissou Santanna (@DelazJ) Is this still valid in 3.4.2? |
Author Name: Jürgen Fischer (@jef-n) Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life. |
Author Name: Giovanni Manghi (@gioman) Closing for lack of feedback.
|
Please reopen this! Same thing is happening here with a *.VRT file with Qgis 3.16.1.
|
@jorgealmerio would you mind opening a new ticket? I would like avoid reopen very old tickets that unlikely anyone will have a look at. Thanks! |
Author Name: Joseph Liam (Joseph Liam)
Original Redmine Issue: 19838
Affected QGIS version: 2.18.22
Redmine category:virtual_layers
I created a virtual layer which contains a copy of features from another layer (be it point, line or polygon) using the expression:
@select * FROM "some_layer"@
Now when I use the Select Features tool and try to select either one or a group of features, it would select other features which I did not highlight (as shown in the image provided).
But the selection doesn't seem to be random. When I try to select the same features each time, other features which lie somewhere else are instead selected. I tried changing the projection CRS but the issue remained.
Related issue(s): #22229 (relates)
Redmine related issue(s): 14232
The text was updated successfully, but these errors were encountered: