Exercise – 9 / How to use Join & Spatial Join functions in QGIS
Join Attributes by Location (Spatial Join)
Join Attributes by Location (Spatial Join)is transferring attributes from one layer to another based on their spatial relationship.
- Add Polygon/Line/Point Layer to Layers panel for spatial join.
Figure 156 - QGIS canvas with point & polygon layers loaded for spatial join
- In this exercise we will join the data from Parcel_point to Parcel (Polygon) layer, open attribute tables of both the shapefiles to check the attribute data.
Figure 157 - Attribute data of Point layer
Figure 158 - Attribute data of Polygon layer
- Choose Vector → Data Management tools → Join Attributes by Location
Figure 159 - Join by Location window
- Select Base Layer (Parcel – Data will be joined to)
- Select Join Layer (Parcel_point – Data will be joined from)
- Select Geometric predicate from
- Intersect
- Overlap
- Contains
- With in
- Equals
- Crosses
- Touches
- Select Join type and leave remaining as default
- Click on Run
- Temporary layer will be created and added to Layer panel with Joined layer layer. Right click on the layer and save to destination folder.
Figure 160 – QGIS canvas with Joined Layer created after spatial join
- Open attribute table of the Joined Layer to see the attribute’s added from Point layer to Polygon layer.
Figure 161 – Attribute data of joined layer
Comments
Post a Comment