[Qgis-user] Qgis atlas print composer : aggregate (bigger overlap)
Stefan Giese (WhereGroup)
stefan.giese at wheregroup.com
Mon Jun 12 05:18:08 PDT 2023
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
> QGIS-User at lists.osgeo.org
> 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
stefan.giese at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230612/dee451a8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230612/dee451a8/attachment.sig>
More information about the QGIS-User
mailing list