I'm trying to join a point layer to a polygon layer to get a specific field in the attribute table into the polygon layer. I want the polygon layer "Zone" to have the field "Improved" from the point layer "Permits". Is there a way to join based on location? All the points in "Permits" are located within the respective polygons in "zone". I've tried performing a Join Attributes by location" but the fields in the new layer end up being blank.
1 Answer
To join attribute from one layer to another you can click the Join attribute by location tool under the Vector tab. This will open the tool screen. Choose the Target layer which is the one you want to add data to ie Zone and the Join layer which is the layer with data you want to transfer Permits. Depending on the version of qgis you use it might be slightly different. I am running QGIS 2.18.3. Then you need to choose a Geometric predicate (not sure the exact option) you can try out one of the different options from intersect, touches, overlap or crosses. And then choose the take attribute of first located feature. Check and choose any other appropriate options form the menu and save to choice location
Join attributes by location
seems to be the right tool. Can you describe your point layer "Permits"? One possibility is the "Permits" does not have any numerical fields. (If "Improved" field is string (text), it will be left-aligned on the attribute table.)