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

Add a "stop at first feature" mode to the identify tool #18421

Open
qgib opened this issue Mar 27, 2014 · 5 comments
Open

Add a "stop at first feature" mode to the identify tool #18421

qgib opened this issue Mar 27, 2014 · 5 comments
Labels
Feature Request Map Tools Related to non-digitizing map tools

Comments

@qgib
Copy link
Contributor

qgib commented Mar 27, 2014

Author Name: Olivier Dalang (@olivierdalang)
Original Redmine Issue: 9907

Redmine category:map_canvas


Hi !

When in "stop at first" mode, the identify tool stops at first layer, but not at first feature.

This is annoying when using the identify tool with the "open feature form when a single feature is identified", since when clicking on overlapping features, two features will be identified which make that "identify window" popup appear instead of the clicked feature's form.

The identify tool should be able to work exactly as the "select single feature" tool.

Proposed solution :

  • Add a "stop at first feature" mode to the identify tool
  • Rename "stop at first" mode to "stop at first layer".
@qgib
Copy link
Contributor Author

qgib commented Mar 28, 2014

Author Name: Matthias Kuhn (@m-kuhn)


The problem with stop at first feature (in contrast to stop at first layer) is, that it is non-deterministic in which order features are returned for a query. As such you might end up with the feature form of the wrong feature.

Instead I would propose to open the attribute table in form view mode with a filter applied to only show the identified features. This way you get the form but are able to switch between multiple identified features. Then we could rename the "open feature form if single feature is identified" to just "open feature form".

@qgib
Copy link
Contributor Author

qgib commented Mar 28, 2014

Author Name: Olivier Dalang (@olivierdalang)


Hi !

Are you sure it's non deterministic ? I get consistent results with the "select single feature" tool. It seems it takes the display order into account (ie a feature that's shown in front of another will be selected).

But in any case, I like your suggestion. The attribute table in form view is indeed much more usable than the "identify window" (at least in my use cases).

One point : it may make lead to some (more) confusion between "identified" features and "selected" features, at such a point one could ask if "identify feature" should not simply work on a feature selection.
The attribute table (when filtered by selection) already reacts in real time to selections, it's just a matter of making the "identify features" window do the same. The only difference between the select tool and the identify tool would then be that the identify tool opens a form window.

@qgib
Copy link
Contributor Author

qgib commented Apr 2, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Olivier Dalang wrote:

Are you sure it's non deterministic ? I get consistent results with the "select single feature" tool. It seems it takes the display order into account (ie a feature that's shown in front of another will be selected).

I guess that's the way a certain provider is implemented. But as long as there is no explicit z-index and order-by there is no guarantee and therefore this may change in a future release/other provider/spatial index boundaries...

But in any case, I like your suggestion. The attribute table in form view is indeed much more usable than the "identify window" (at least in my use cases).

Cool

One point : it may make lead to some (more) confusion between "identified" features and "selected" features, at such a point one could ask if "identify feature" should not simply work on a feature selection.
The attribute table (when filtered by selection) already reacts in real time to selections, it's just a matter of making the "identify features" window do the same. The only difference between the select tool and the identify tool would then be that the identify tool opens a form window.

That's a valid conceptual question and requires careful consideration.

I am a bit afraid, that people will loose their selection (which consists of features carefully selected each on it's own) when they want to check if they should add another feature based on an attribute and therefore use the identify tool.

If we apply a filter to such a view which looks like "object_id in (1,25,37,52)", this would be shown at the bottom of the dialog and could be sufficient to communicate the filtering process to the user.

@qgib
Copy link
Contributor Author

qgib commented Apr 2, 2014

Author Name: Olivier Dalang (@olivierdalang)


Matthias Kuhn wrote:

That's a valid conceptual question and requires careful consideration.

I agree this goes (by far) beyond the scope of this ticket. Still, the more I'm thinking of it, the more I find it makes sense. I'll open a thread about this on the dev ML..

And about your point, it's right, but I think we can overcome this, maybe with a "store selections" feature (I was suggesting this in the Legend interface thread on the mailing list too) or by storing (grouped) selection changes in the undo stack.

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib qgib added Feature Request Map and Legend Related to map or legend rendering labels May 24, 2019
@alexbruy alexbruy added Map Tools Related to non-digitizing map tools and removed Map and Legend Related to map or legend rendering labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Map Tools Related to non-digitizing map tools
Projects
None yet
Development

No branches or pull requests

2 participants