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

Overlay intersects sort by intersection size #46683

Merged

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Jan 3, 2022

overlay_intersects further enhancements

This PR adds two new optional arguments to the existing function:

  • return_details: only valid when used with an expression, set this to true to return a list of maps containing (key names in quotes) the feature 'id', the expression 'result' and the 'overlap' value, the 'radius' of the maximum inscribed circle is also returned when the target layer is a polygon.
  • sort_by_intersection_size: only valid when used with an expression, set this to true to return the results ordered by the overlap value in descending order.

This is the new documentation:
overlay_intersects_measure

@elpaso elpaso added Feature Expressions Related to the QGIS expression engine or specific expression functions labels Jan 3, 2022
@github-actions github-actions bot added this to the 3.24.0 milestone Jan 3, 2022
@elpaso elpaso force-pushed the overlay_intersects_sort_by_intersection_size branch from c23632c to 68a5375 Compare January 3, 2022 15:01
@elpaso elpaso force-pushed the overlay_intersects_sort_by_intersection_size branch from 68a5375 to 4449598 Compare January 3, 2022 15:09
@Gustry Gustry added the Changelog Items that are queued to appear in the visual changelog - remove after harvesting label Jan 3, 2022
elpaso and others added 2 commits January 4, 2022 09:37
Co-authored-by: nicogodet <39594821+nicogodet@users.noreply.github.com>
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
elpaso and others added 2 commits January 7, 2022 10:23
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
@elpaso
Copy link
Contributor Author

elpaso commented Jan 11, 2022

Any objection to merge?

@elpaso elpaso merged commit 18979e5 into qgis:master Jan 13, 2022
@elpaso elpaso deleted the overlay_intersects_sort_by_intersection_size branch January 13, 2022 22:51
DelazJ added a commit to DelazJ/QGIS-Documentation that referenced this pull request Feb 2, 2022
- add negative index to array_remove_at (qgis/QGIS#46942)
- add new parameters to overlay_intersects (qgis/QGIS#46683)
@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 May 28, 2022
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. Expressions Related to the QGIS expression engine or specific expression functions Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants