我从GPS设备获得纬度和经度,如下所示:
ColA ColB ColC ColD LAT LON
C:\TYPE1\00000207.jpg c02 0.206803652 1744 -0.337716909 2.560730623
C:\TYPE1\00000207.jpg c00 0.206803652 1744 -0.337716909 2.560730623
我能够将其转换为DEGREES,如下所示:
ColA ColB ColC ColD LAT LON
C:\TYPE1\00000207.jpg c02 0.206803652 1744 -19.34975358 146.7190571
C:\TYPE2\00000207.jpg c00 0.206803652 1744 -19.34975358 146.7190571
使用以下简单代码:
,degrees(latitude) )as lat
,degrees(longitude)) as lon
但是我想在MSSQL中将其转换为度,分和秒,如下所示:
ColA ColB ColC ColD LAT LON
C:\TYPE1\00000207.jpg c02 0.206803652 1744 - 19° 20' 59.11289"S 146° 43' 8.60572"E
C:\TYPE2\00000207.jpg c00 0.206803652 1744 - 19° 20' 59.11289"S 146° 43' 8.60572"E