I have a polygon layer that shows the counties of England and a point layer of project sites. I am trying to make a new virtual field within the point layer that will reference the county that it is in. It needs to be able to stay in the attribute table of the point layer (and not creating a new joined layer) as it will be updated by adding more project sites/points in the future and am working in spatialite where this point shapefile has a join to a records table.
Does anyone know the expression I can use to do this?
geomwithin( 'nameOfPolygonLayer', 'countyField' )
which retrieves the target field value from the target layer when source feature is within target feature.Plugins > Manage and Install plugins
. Then search for the plugin and click theInstall Plugin
button.