-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
WMS: GetFeatureInfo FEATURE_COUNT set connection default #57180
Conversation
Allow to set a default FEATURE_COUNT (default 10) individually for each WMS connection. This default also works when adding WMS layers from the browser and it can be overridden for each individual layer when added from the datasource manager. The deafult user experience when adding layers from the datasource manager is not changed: the default of 10 still applies unless it is explicitly set from the connection settings. Fix qgis#45206 Founded by: QGIS user group Germany (QGIS Anwendergruppe Deutschland e.V.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Noticed two things while testing this:
For an existing connection, QGIS Browser settings shows the default 10 but there is no FEATURE_COUNT parameter used in the requests.
For a new layer (added via QGIS Browser):
When changing FEATURE_COUNT
to 33 in Data Source Manager:
In QGIS Browser it shows server default
Yeah, my original intention was to keep the original behavior in case the default was not set explicitly (server default) but then I changed the default to 10, I'll update the logic accordingly.
I think this is expected: we now have two places where this (max) featureCount is defined and they are supposed to work in a cascading way (from the connection to the individual layer definition), by changing the value in the layer datasource manager select dialog you are not changing the connection level default (this is also why I added "Default" to the label btw) but the modifications only apply to the layers being added. To change the default value you need to edit the connection settings. I hope this makes sense, I simplified the code anyway and removed the Please have a look to the changes. |
Thanks for sharing your thoughts and updates. The behaviour in QGIS Browser is now as expected for new and existing connections. When connecting to the same connection in Data Source Manager, the value for What's unexpected (at least for me :-) ) is, that when setting a new value for IMHO the Peek.2024-04-19.16-44.mp4 |
You are right, it should be fixed by c23aaa4 |
It is, thank you! |
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
@elpaso A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
@elpaso |
Allow to set a default FEATURE_COUNT (default 10) individually for each WMS connection.
This default also works when adding WMS layers from the browser and it can be overridden for each individual layer when added from the datasource manager.
The deafult user experience when adding layers from the datasource manager is not changed: the default of 10 still applies unless it is explicitly set from the connection settings.
Fix #45206
Funded by: QGIS user group Germany (QGIS Anwendergruppe Deutschland e.V.)