Converting geo coordinates from degree to decimal

后端 未结 7 912
滥情空心
滥情空心 2020-11-28 10:48

I want to convert my geographic coordinates from degrees to decimals, my data are as follows:

         lat     long
105252 30°25.264 9°01.331
105253 30°39.23         


        
7条回答
  •  执笔经年
    2020-11-28 11:03

    Try using the char2dms function in the sp library. It has other functions that will additionally do decimal conversion.

    library("sp")
    ?char2dms
    

提交回复
热议问题