2.72. Spatial Join (Join by location)
Insert into layer 1 attribute from intersects feature in layer 2
Inputs:
Vector layer 1
Polygon layer 2
Name of attibute in layer 2
Outputs:
ZIP with Shapefile layer 1 with added attribute
QML style file
![../../_images/spatial_join.png](../../_images/spatial_join.png)
Pic. 2.18. Example of source data: cities and regions
![../../_images/spatial_join_result.png](../../_images/spatial_join_result.png)
Pic. 2.19. Example output: cities with added region name
Launch tool: https://toolbox.nextgis.com/operation/spatial_join
Try it out using our sample:
Download input dataset to test the instrument. Step-by-step instructions included.
Get the output to additionally check the results.