2

I use the following expression (array_to_string(overlay_intersects('layer name',"Field name")) to get the field data from another layer that intersects with a new layer that will be created. However, it results NULL value, and it causes an error when opened and used in QField 3.1.9 Borneo (but it works fine in QField 3.0.7 Amazonia).

Is there any other expression to do the same?

enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Feb 2, 2024 at 8:10
2
  • It is not the QGIS version, it is QField and 3.1.9 Borneo is the most recent one Commented Feb 2, 2024 at 8:41
  • 2
    Hi, I am using QGIS 3.34. the 3.0 / 3.1 is the version of QField Commented Feb 2, 2024 at 8:41

1 Answer 1

3

You can try an aggregate function instead, which will lead to the same results. It will have the following structure in your case:

array_to_string(aggregate(layer:='Manuring block',
 aggregate:='array_agg',
 expression:="Blk_No",
 filter:=intersects($geometry,geometry(@parent))))

But I did not test it with QField...

answered Feb 2, 2024 at 8:39
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.