I would like to use the tool "Spatial Join" in order to spatially join point (target feature) and polygons (join features) using the match option "within". In addition to the spatial join, the operation should join on an attribute identical in the two datasets. Take the following situation:
Imagine the colour of the points and polygons are manifested in their attribute tables in the column "colour". The red polygon should therefore be joined only to the red point, yellow to yellow and blue to blue (even though all three points are within all three polygons).
I'm creating a tool with ModelBuilder in order to aggregate points to groups that are within a specific distance of each other.