1

How do you convert the WGS coordinate to latitude and longitude?

enter image description here

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Dan Olson
  • 167
  • 11

1 Answers1

5

Create new columns of type text with the following field calculator code:

to_dms(x(transform($geometry,'EPSG:source','EPSG:4326')),'x',3)

This gives you the X-coordinate in DMS-format with 3 decimal places. For the Y-coordinate just exchange both x for y.

Also, exchange the "source"-part in EPSG:source with the EPSG-code for the CRS your data is in.

Erik
  • 16,269
  • 1
  • 24
  • 43