<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi!</div><div><br></div><div>I've been trying to use the reference relation widget with a filter expression and running into quite a bit of issues.</div><div><br></div><div>If the expression filter is "self contained" (meaning, it only uses values / attributes / fields from the referenced layer) then everything works as expected.</div><div><br></div><div>But im trying to use the expression filter to only list items that are in the vicinity (buffer) or intersect with the feature being created.</div><div><br></div><div>And it seems its impossible to use the "parent" geometry in the expression in any way that works.</div><div><br></div><div><br></div><div>So, for example, if I use the following expression</div><div><br></div><div>floor($x)%2=0 it properly shows in the drop down list only those points where the coordinates are even. (This is not what I need, but was a way to verify I could access the referenced feature's geometry</div><div><br></div><div><br></div><div>now, the problem is how do I compare the referenced feature's geometry to the point / feature im creating?</div><div><br></div><div>I've tried:</div><div><br></div><div>intersects($geometry,geometry( @current_parent_feature ))<br></div><div><div>intersects($geometry , @current_parent_geometry )<br></div><div>intersects($geometry,geometry(@parent))<br></div></div><div><div>intersects($geometry,@current_geometry)<br></div><div><br></div><div>(and quite a few other options as well).</div><div><br></div><div>I can use an expression in the "default value" field and that works fine </div><div><br></div><div>overlay_intersects('poste',"fid")[0]  (where 'poste' is the referenced layer im trying to filter)</div><div><br></div><div>(I also tried with overlay_intersects in the expression filter until I realised that the "current" object in that expression filter refers to the iterator we're trying to filter).</div><div><br></div><div>Is there any way at all to filter this? (If I use the Value Relation mechanism i can use one of these filters and it works fine). </div><div><br></div><div>Thanks in advance!</div><div><br></div><div><br></div></div><div><br></div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span lang="ES-CO" style="font-size:12.8px;color:rgb(31,73,125)"><b>Diego Garcia del Rio</b></span><span lang="ES-CO" style="font-size:10pt;color:rgb(31,73,125)"> </span><span style="font-size:10pt;color:rgb(31,73,125)">| CTO | Mediatel S.A. | Tel: +54 11 5218 0463 (x103) | Cel: +54 9 11 4530-4697 | </span><span lang="EN-US" style="font-size:10pt;color:rgb(31,73,125)"><a href="http://www.mediatel.com.ar/" style="color:rgb(17,85,204)" target="_blank"><span lang="ES-AR" style="color:blue">www.mediatel.com.ar</span></a></span><span style="font-size:10pt;color:rgb(31,73,125)"> | Juan Carlos Cruz 2360 – 4B (1636), Vicente López, Buenos Aires, Argentina |</span><br></div></div><div dir="ltr"><font color="#1f497d"><span style="font-size:13.3333px"><a href="https://goo.gl/maps/NZCFPwVkFFf14cR67" target="_blank">https://goo.gl/maps/NZCFPwVkFFf14cR67</a></span></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>