QGIS Latitude and Longitude – Calculating Latitude and Longitude of Points in QGIS

field-calculatorlatitude longitudepointqgis

How do I easily calculate the lat/long of points using the QGIS Field Calculator?

I saw a previous related question (Using QGIS API and Python, to return latitude and longitude of point?), but it deals with a more advanced approach.

In ArcGIS Desktop this is similar to the Calculate Geometry function; I just can't find where do this in QGIS.

Best Answer

First, save the layer as WGS84 and import it again. Then in the field calculator you can use $x or $y as a variable to get the x and y.

x and y

This was added in 1.7.

Related Question