QGIS Expression - overlay_intersects #59408
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Expressions
Related to the QGIS expression engine or specific expression functions
What is the bug or the crash?
I noticed that using the
return_details
andsort_by_intersection_size
options does not give the expected results.If the object to evaluate has more parts or is multipart, the output is incorrect, that is, the output returns only the length (or area) of the largest part.
In the image below I highlight the fact that the L-shaped segment is calculated only the length of the longest segment.
In the case of Multipolygon with separate parts, the area of the largest overlap is calculated and not the overall area.
Steps to reproduce the issue
I attach an example project (use the views to correctly display the two cases)I attach an example project (use the views to correctly display the two cases)
progetto_overlap.zip
https://discourse.osgeo.org/t/espressione-di-qgis-overlay-intersects/111118/1
Versions
The problem is present on QGIS 3.34.12, QGIS 3.40.0 and the master
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: