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?

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

| improve this answer | |
  • Thanks, that worked! – Eline Jun 30 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.