In GPS devices, there are different display methods for coordinate units, with degrees (DMS) and degrees (DDD ).
For example, the GPS coordinates of the window Pioneer Park in bancang Street, Xuanwu District, Nanjing are as follows:
Minute second (DMS): longitude E 118 degrees 48 minutes 54.152 seconds north latitude N 32 degrees 04 minutes 10.461 seconds
Degree (DDD): E 118.815033 degrees N 32.069723 degrees
How to convert degrees (DDD): 118.815033 degrees to degrees (DMS) Dong Jing E
118 degrees 48 minutes 53.652 seconds? The conversion method is to change the 118.815033 integer to 118 degrees, and use 0.815033*60 = 48.90198 to take the integer 48 (points ), 0.90198*60 = 54.1188 and then 54 (seconds), so the conversion is 118 degrees 48 minutes 54 seconds.
Similarly, the method for converting degrees into seconds (DMS): Dong Jing e 118 degrees 48 minutes 54.152 seconds to degrees (DDD) is as follows: 118 degrees 48 minutes 54.152 seconds = 118 + (48/60) + (54.152/3600) = 118.81504 degrees
Because the decimal point is retained During computation, there is a certain error in the positive and negative computation, but the error does not have a great impact. The error of one second is a few meters. You can use the above method to convert the Unit coordinates you need.