I'm having a polygon-file of all municipalities in Bavaria, with data of population density. Now I want to get a value for each polygon (= each municipality) that shows the average of population density of all neighboring polygons plus the source polygon.
I am working in QGIS. My knowledge is quite basic. Can anyone help? As I want to get the value for all municipalities of Bavaria, I can't do this operation by hand.