I have a polygon shapefile of the counties in the UK and a separate point shapefile of project sites.
Within the project sites attribute table I would like to add a new virtual column with the name of the county that the point sits in determined by the polygon it is in. I have tried
aggregate( 'County and Unitary Authority', 'concatenate',
"county", within( $geometry, geometry(@parent) ))
but I know this is wrong. Which aggregate do I use instead of concatenate
and is within
the right filter to use?
I need a method like this with NO use of plugins or making new layers.
Also, does @parent
literally mean @parent
or does parent mean the name of the parent layer i.e. @County and Unitary Authority
?