1

I've created a grid using make grid in QGIS. The type of grid is rectangular (polygon) and it's 0,1 x 0,1 decimal degrees. I now want to assign an X and Y coordinate to the centre of each grid. Would anyone know how to do this?

1 Answer 1

2

You can open the field calculator and add a new field centroid_x, type decimal, computed as x(centroid($geometry)) (the X coordinate, of the centroid of the current (=each) geometry.)

Add a second field centroid_Y computed as y(centroid($geometry))

enter image description here

1
  • Thanks, that worked!
    – Eline
    Jun 30, 2020 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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