I have a layer with street segments that I would like to join with a building + population layer. Desired result: The segment contains population data. Nearest neighbor (NNjoin) finds the closest building and adds its population to the attribute table. Issue: there are buildings on both sides of the segment. Is there a way I can join attributes from several buildings (within a radius, for example) to the segment, adding their values together? I use QGIS and GRASS GIS. Any ideas?
- Join nearest neighbor, but segment to building (each building looking for the closest segment).
- Use Group Stats Plugin to sum the population for each join_id.
- Export the result as cvs
- Import into QGIS as delimited text layer (as attribute table)
- Join the values to the segments.