Sunday, 17 May 2015

How do I calculate the latitude and longitude of points using QGIS?


I'm trying to figure out how to calculate the lat/long of points using the QGIS field calculator. Is there an easy way to do this? I saw a previous related question, but it deals with a more advanced approach.


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



Answer



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


x and y


NOTE: This was added in 1.7.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...