<div dir="ltr">Thanks a lot for your usefull reply. It works well !</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 12 juin 2023 à 14:18, Stefan Giese (WhereGroup) <<a href="mailto:stefan.giese@wheregroup.com">stefan.giese@wheregroup.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hi,</p>
    <p>you can use overlay functions instead, there you can sort the
      size of intersection and take the biggest one:</p>
    <p><i>overlay_intersects(layer:='</i><i>PARCEL_LAYER</i><i>', 
        expression:="parcel_id", sort_by_intersection_size:='des')[0]</i><br>
    </p>
    <div>hope this helps</div>
    <div>Stefan</div>
    <div><br>
    </div>
    <div>Am 12.06.2023 um 14:04 schrieb celati
      Laurent via QGIS-User:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Good afternoon,<br>
        With Qgis 3.30, In the composer interface, I generate an atlas. 
        <div>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 :<br>
          <br>
          <i>  aggregate(<br>
            'LAYER':="PARCEL_LAYER',aggregate:='concatenate',<br>
              expression:="parcel_id",<br>
            filter:=intersects(geometry(@parent), $geometry))</i></div>
        <div><br>
          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?<br>
        </div>
        <div><br>
        </div>
        <div>Thanks a lot.</div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
QGIS-User mailing list
<a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
------------------------------------------------------
Aufwind durch Wissen!
Jetzt neu: Webinare und Online-Schulungen
bei der <a href="http://www.foss-academy.com" target="_blank">www.foss-academy.com</a>
------------------------------------------------------

WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

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

<a href="mailto:stefan.giese@wheregroup.com" target="_blank">stefan.giese@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm 
Amtsgericht Bonn, HRB 9885</pre>
  </div>

</blockquote></div>