[Qgis-user] Qgis atlas print composer : aggregate (bigger overlap)

celati Laurent laurent.celati at gmail.com
Mon Jun 12 05:45:56 PDT 2023


Thanks a lot for your usefull reply. It works well !

Le lun. 12 juin 2023 à 14:18, Stefan Giese (WhereGroup) <
stefan.giese at wheregroup.com> a écrit :

> 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 listQGIS-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 der www.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.comwww.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/ed5f65a8/attachment.htm>


More information about the QGIS-User mailing list