I've tried using "Intersect" and "Join attribute by location" but these aren't achieving exactly what I'm after. I have a series of points inside and outside a polygon.
My aim is to create/update a single field with the distance from the polygon to the points outside it. Any that are inside the polygon will ideally have their distance set to 0. This forms part of a series of operations in a graphical model.
Currently I am using "Distance to nearest hub" to find the distances, but this also gives the distance of the points inside the polygon.
Is there a way to automatically update/append a value of 0 in the Distance field (HubDist) for only the points inside the polygon?



