I have a shapefile with a lot of polygon features in it. For each polygon, I want to calculate the distance from the centroid of each polygon to a certain coordinate.
How can I achieve this using the field calculator?
See the added picture for an example: For every feature, I want the distance from its centroid to the red dot (CRS projection I used is EPSG28992, but regular lon lat is also fine. As long as the distance gets calculated).