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.

I have created polygon centroids using one of the "Geometry Tools" but I would like to extract the actual coordinates into Excel for further work. Is this possible?

share|improve this question

2 Answers 2

Create 2 new columns (x and y) type real. In field calculator use option update existing field and execute following expressions: $x (for x column) and $y (for y column). Actually you can create new columns in field calculator directly using create new column option. Now you can export your layer as CSV (save layer as) and work with it in Excell or whatever you like.

share|improve this answer
    
Superb, easy when you know how! –  BNA Aug 29 '12 at 11:27
3  
@BNA, if your issue was solved (and you are satisfied with the answer), please mark my answer as "accepted" (transparent mark under votes counter of my answer. –  SS_Rebelious Aug 29 '12 at 12:00

Here is a lazy way of getting the coordinates.

  1. Select all features in the centroids layer using selection tools.
  2. Press Ctrl+C to copy it to clipboard.
  3. Open Excel. Press Ctrl+V to paste data to clipboard.

You get the Well Known Text(WKT) of the features in the 'wkt_geom' field in Excel as shown below. This is a great way to pull the WKTs out of features.

enter image description here

share|improve this answer
    
For this case I prefer the method used by @ss-rebelious, but it's still a very good hint to know, thanks! –  Alexandre Neto Aug 29 '12 at 13:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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