I would like to do some checks on a new created polygon using attribute rules.
For example count the vertexes or check if they exists as points in a different layer.
I could not find a way to do it.
Possible way is to convert the feature geometry to JSON.
I found FromJSON but not ToJSON. There are many functions to translate from JSON to feature but not the other way around.
Is there any way to do it?
Thanks