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?


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

  • Thanks, that worked! – Eline Jun 30 '20 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.