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 extent based filtering for SensorThings layers #56564

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

nyalldawson
Copy link
Collaborator

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.

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.
@nyalldawson nyalldawson added Feature Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. Changelog Items that are queued to appear in the visual changelog - remove after harvesting SensorThings Relates to the OGC SensorThings provider labels Feb 27, 2024
@qgis-bot
Copy link
Collaborator

@nyalldawson

This pull request has been tagged for the changelog.

  • The description will be harvested so please provide a "nearly-ready" text for the final changelog
  • If possible, add a nice illustration of the feature. Only the first one in the description will be harvested (GIF accepted as well)
  • If you can, it's better to give credits to your sponsor, see below for different formats.

You can edit the description.

Format available for credits
  • Funded by NAME
  • Funded by URL
  • Funded by NAME URL
  • Sponsored by NAME
  • Sponsored by URL
  • Sponsored by NAME URL

Thank you!

@qgis-bot
Copy link
Collaborator

@nyalldawson
This pull request has been tagged as requiring documentation.

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.
Also, any commit having [needs-doc] or [Needs Documentation] in will see its message pushed to the issue, so please be as verbose as you can.

Thank you!

@github-actions github-actions bot added this to the 3.38.0 milestone Feb 27, 2024
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.
Copy link

github-actions bot commented Feb 27, 2024

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 5365b5e)

@nyalldawson nyalldawson merged commit a196741 into qgis:master Mar 3, 2024
30 checks passed
@nyalldawson nyalldawson deleted the sensor_things_extent branch March 3, 2024 22:26
@nyalldawson
Copy link
Collaborator Author

Thanks for the review @rouault !

@zacharlie zacharlie added ChangelogHarvested This PR description has been harvested in the Changelog already. and removed Changelog Items that are queued to appear in the visual changelog - remove after harvesting labels Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ChangelogHarvested This PR description has been harvested in the Changelog already. Feature Needs Documentation When merging a labeled PR, an issue will be created in the Doc repo. SensorThings Relates to the OGC SensorThings provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants