-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 extent based filtering for SensorThings layers #56564
Conversation
Since there's NO way to retrieve the actual data extent using the SensorThings standard, we have to be a bit creative. 1. Initially, the extent is ALWAYS global. This is a worst case scenario, but it means at least that when zooming to the layer that the data will actually be visible (instead of requiring the user to guess where the data is) 2. When retrieving features from the service, we start to build an extent based on their bounding boxes. 3. When we know for certain that we've retrieved all features, we use our calculated actual extent for the layer.
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
@nyalldawson 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! |
Allows users to set an extent limit for the layer, so that features are only ever loaded within this extent The extent can be set from the data source manager before adding the layer initially, or modified from the layer properties, source tab.
python/PyQt6/core/auto_generated/providers/sensorthings/qgssensorthingsutils.sip.in
Show resolved
Hide resolved
Thanks for the review @rouault ! |
Allows users to set an extent limit for the layer, so that features are only ever loaded within this extent
The extent can be set from the data source manager before adding the layer initially, or modified from the layer properties, source
tab.