QGIS – Add X&Y Fields to a Layer

Marketing
Marketing
  • Updated

By David Crowther

QGIS___Add_X_Y_Fields_to_a_Layer_-_1.PNG

QGIS 3.8 Zanzibar was released in August 2019 and the full change log can be viewed here:

https://qgis.org/en/site/forusers/visualchangelog38/index.html

Here is a great new tool which allows you to Add X and Y Fields to a layer without having to create the columns and run an update script manually.

Add X&Y Fields to a Layer

In the video below we use the new Add X/Y Fields to Layer tool to extract the X and Y coordinates of our Schools layer.

In QGIS 3.8 we can now drag and drop the required layer (Schools) into the new Add X/Y Fields to Layer tool, choose what projection to extract the coordinates in e.g. BNG (27700), WGS 84 (4326) etc…. and also provide a prefix to the new field names.

QGIS___Add_X_Y_Fields_to_a_Layer_-_2.gif

Once the tool runs a new layer is created with the coordinates now extracted and added as 2 new columns in the file. This is a lot easier than using the Field Calculator tool and running the extract manually.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.