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

Map tools: Select Features by single click always selects only 1 feature instead of all the overlapping features #60087

Open
2 tasks done
agiudiceandrea opened this issue Jan 9, 2025 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Map Tools Related to non-digitizing map tools

Comments

@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jan 9, 2025

What is the bug or the crash?

When the "Select Features by area or single click" map tool is used "by single click", then it always selects only 1 feature, even if there are more than 1 overlapping features.

This behaviour is different from the one of the same tool when it is used "by area", or from the one of all the other "Select Features" map tool: all the overlapping features are always selected.

Steps to reproduce the issue

  1. Add to the map or create a polygon vector layer containing overlapping polygons
  2. select the "Select Features by area or single click" map tool and click on a point on the map which is contained by multiple polygon features
  3. observe that only 1 polygon feature is select instead of all the polygon features that contain the clicked point

Versions

QGIS 3.40.2 / QGIS 3.34.14 on Windows 10

QGIS version3.40.2-Bratislava
QGIS code revision14826ca1
 
Libraries
Qt version5.15.13
Python version3.12.8
GDAL/OGR version3.9.3
PROJ version9.5.0
EPSG Registry database versionv11.016 (2024-08-31)
GEOS version3.13.0-CAPI-1.19.0
SQLite version3.46.1
PDAL version2.8.1
PostgreSQL client version16.2
SpatiaLite version5.1.0
QWT version6.3.0
QScintilla2 version2.14.1
OS versionWindows 10 Version 1903
 
Active Python plugins
db_manager0.1.20
grassprovider2.12.99
MetaSearch0.3.6
processing2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Not sure if such behaviour is intended or not.

The corresponding "Identify Feature(s) by single click" map tool correctly identifies all the polygon features that contain the clicked point.

The docs don't look like containing a mention of any different behaviour of the "Select Features" by single click map tool.

@agiudiceandrea agiudiceandrea added Bug Either a bug report, or a bug fix. Let's hope for the latter! Map Tools Related to non-digitizing map tools labels Jan 9, 2025
@lbartoletti
Copy link
Member

@agiudiceandrea From an old CAD user, I think it's by design and not a bug.

For this simple case :

image

Clicking inside id = 3 polygon, could select the three polygons, however, using the single click, is like, "I want the 'last'/'superior' polygon".

However, one can consider as a bug, the single click, which doesn't respect the "control feature rendering order"
image

Here, the id = 3 is still the selected polygon. So, my "assumption" : "I want the 'last'/'superior' polygon", is eventually "I want the 'last' polygon" whatever the rendering order. Is it a bug? Maybe

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! Map Tools Related to non-digitizing map tools
Projects
None yet
Development

No branches or pull requests

2 participants