A curiosity question. I am looking for making a field calculation with QGIS, I see is possible to include the geometry field of the same feature layer, nevertheless I was wondering if it is possible to use the geometry from other layers features in my calculation. For example, intersection or else.


Should be possible, the get_feature function enables you to access features from any layer. In combination with the geometry function you may obtain the features geometry for spatial relationship analyses etc. (geometry(get_feature())). Key challenge in my opinion is a clever selection of the features depending on the processed dataset:

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.