Hi,

you can use overlay functions instead, there you can sort the size of intersection and take the biggest one:

/overlay_intersects(layer:='//PARCEL_LAYER//', expression:="parcel_id", sort_by_intersection_size:='des')[0]/

hope this helps
Stefan

Am 12.06.2023 um 14:04 schrieb celati Laurent via QGIS-User:
Good afternoon,
With Qgis 3.30, In the composer interface, I generate an atlas.
My iteration layer is a polygonal layer (platforms). I added a text element to automatically get by spatial intersection the 'parcel_id' attribute present in another polygonal layer. I use the aggregate function for this task :

/  aggregate(
'LAYER':="PARCEL_LAYER',aggregate:='concatenate',
  expression:="parcel_id",
filter:=intersects(geometry(@parent), $geometry))/

It works. But the result shows values of all the intersections. I would like it limit to the result of the biggest intersection. Would you know how to do it?

Thanks a lot.

_______________________________________________
QGIS-User mailing list
[email protected]
List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user

--
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
------------------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei derwww.foss-academy.com
------------------------------------------------------

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

[email protected]
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
QGIS-User mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to