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?


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.

  • 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

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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