New answers tagged

0

This post has been relevant but nowadays there is a native function for this intent included in the expression calculator. Now, you can simply run to_dms(5.1234, 'x', 2). A capture of the current doc can be seen below


1

I made some changes to the code to get the coordinates in DMS, if necessary. Only adjustments to the EPSG information are needed. Latitude (CASE WHEN $y < 0 THEN '-' ELSE '' END) || floor (abs(Y( transform( $geometry, 'EPSG:31983', 'EPSG:4326')) )) || '°' || floor(((abs(Y( transform( $geometry, 'EPSG:31983', 'EPSG:4326')) )) - floor (abs(Y( transform( $...


Top 50 recent answers are included