Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

This question already has an answer here:

I have a vector shapefile map that is divided into polygons. I want to add 2 columns to the attribute table with the eastings/northings coordinates of each polygon centroid.

So far what I've tried is:

menu > Vector > geom tools > polygon centroids

This gives me the centroids, but as a new layer. What I cant figure out how to do is to merge this layer with the original.

There is a command: menu > vector > join attribute by location.

But what I want is, I guess, 'join by attribute column' or something.

share|improve this question

marked as duplicate by underdark Feb 25 '13 at 7:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Is the only thing you want to add the lat and long columns? –  Nathan W Feb 24 '13 at 22:37
    
@Nathan W, yes (though its not lat/lng but easting/northing). Found a solution in answer below though its a bit of a roundabout method. Is there a faster way? –  spiderplant0 Feb 24 '13 at 22:45
add comment

1 Answer 1

Ok, I think I just figured it out......

Layers Sidebar > Right mouse click on the layer containing the polygons > properties > Joins>

Add the layer you want to join up, and the columns name.

When its done, save as a new vector layer to get a layer with the attribute table merged.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.