I have got a layer in QGIS that is comprised of connected points which define regions of a country, thus the attribute table consists of 38 regions while the number of nodes in this layer is about 14000. The CRS system is EPSG:3410.

I want to do the following. For each regions calculate the rightmost point and then I want QGIS to give me the coordinates (XY) of this point. I have looked through many forums but I haven't found the answer to this simple problem.

I can find the x-coordinate of the rightmost point, in the field calculator for the regions layer I type x=xmax($geometry), but I do not understand how to get y coordinate of this point.

1 Answer 1


A simple pyqgis script will do this but the following approach should also work:

  • use Extract Nodes to get a point layer of all the vertices.
  • add X and Y coordinate columns using $y and $x
  • now you can get the y max coordinate for each polygon. Try the Group Stats plugin to get these values for all the polygons.

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.