How do you convert the WGS coordinate to latitude and longitude?
Asked
Active
Viewed 398 times
1
-
4Have you read this post? Converting x y coordinates to longitude latitude using QGIS? – Joseph Oct 30 '19 at 12:49
-
2Coordinates in WGS84 are already lat/long. This must be something like a UTM coordinate based on the WGS84 datum – radouxju Oct 30 '19 at 14:38
1 Answers
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
-
Comments are not for extended discussion; this conversation has been moved to chat. – Ian Turton Oct 30 '19 at 16:19
