Skip to content
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

Closed
qgib opened this issue Sep 13, 2018 · 12 comments
Closed

Cannot select correct features in Virtual Layer #27662

qgib opened this issue Sep 13, 2018 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Sep 13, 2018

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


@qgib
Copy link
Contributor Author

qgib commented Sep 13, 2018

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

@qgib
Copy link
Contributor Author

qgib commented Sep 13, 2018

Author Name: Gerhard Spieles (Gerhard Spieles)


Same issue in Spatialite Views #22229

@qgib
Copy link
Contributor Author

qgib commented Sep 13, 2018

Author Name: Andrea Giudiceandrea (@agiudiceandrea)


Did you try with QGIS 3.3.0-master?

@qgib
Copy link
Contributor Author

qgib commented Sep 14, 2018

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


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 15, 2018

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2018

Author Name: Joseph Liam (Joseph Liam)


Harrissou Santanna wrote:

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

Tried quering with naming fields in the expression (e.g. @select geometry, fieldName FROM "some_layer"@), same result when trying to select features.

@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2018

Author Name: Joseph Liam (Joseph Liam)


Andrea Giudiceandrea wrote:

Did you try with QGIS 3.3.0-master?

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 :)

@qgib
Copy link
Contributor Author

qgib commented Dec 7, 2018

Author Name: Harrissou Santanna (@DelazJ)


Is this still valid in 3.4.2?

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Jürgen Fischer (@jef-n)


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

@qgib
Copy link
Contributor Author

qgib commented Mar 8, 2019

Author Name: Giovanni Manghi (@gioman)


Closing for lack of feedback.


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Mar 8, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 25, 2019
@jorgealmerio
Copy link

Please reopen this! Same thing is happening here with a *.VRT file with Qgis 3.16.1.

Versão do QGIS 3.16.1-Hannover Código da versão do QGIS b381a90
Compilado sobre Qt 5.11.2 Rodando sobre Qt 5.11.2
Compilado sobre GDAL/OGR 3.1.4 Rodando sobre GDAL/OGR 3.1.4
Compilado sobre GEOS 3.8.1-CAPI-1.13.3 Rodando sobre GEOS 3.8.1-CAPI-1.13.3
Compilado no SQLite 3.29.0 Executando contra SQLite 3.29.0
Versão do cliente PostgreSQL 11.5 Versão SpatiaLite 4.3.0
Versão do QWT 6.1.3 Versão QScintilla2 2.10.8
Compilado com PROJ 6.3.2 Em execução com PROJ Rel. 6.3.2, May 1st, 2020
Versão SO Windows 7 SP 1 (6.1)
Ativar complementos python c3d; CalculateGeometry; changeDataSource; coordinator; flowTrace; GroupStats; ImportPhotos; MemoryLayerSaver; pluginbuilder3; PluginLoadTimes; plugin_reloader; QEsg; quick_map_services; splitmultipart; SpreadsheetLayers; uteis; valuetool; VectorBender; wnt; db_manager; processing

SES_redes_Trechos.zip

@gioman
Copy link
Contributor

gioman commented Dec 16, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

3 participants