Select all polygon with 40 meters of a selected polygon and then get an average value of one of the attributes from the selected polygons.
I need to do this for each of the buildings within a city.
I am thinking I need a for each statement but I am not sure.
Any help is greatly appreciated.