There is layer with polygons. I want to save in new field distance of every polygon's centroid to centroid of one particular polygon.
To do this I should write some expression like this:
distance(centroid($geometry), get_feature(6679)) # 6679 is feature id of some polygon
According to weak documentation get_feature returns the first feature of a layer matching a given attribute value. Writing it like this
get_feature('id', 6679)
results into "Parsing Error: Function is called with wrong number of arguments".
Who knows the right way to get geometry of some polygon with given feature id?