1

Initially the data was in BLOB field of SQLite database then -> hex data -> decimal data.

(ëÑ·,Êz¾5)->(14EBD1B7, CA7ABE35)->(350998860, 3397041663)

Finally, I got a set like this:

longitude

350998860
350998914
350998914
350998914
350999021
350998967
350998967
350998967
350998914
350998967
350999021

Latitude

3397041663
3397041717
3397041663
3397041556
3397041610
3397041610
3397041556
3397041610
3397041610
3397041663
3397041610
3397041663

I know the data was taken close to the university of Memphis with Latitude:N 35° 7' 6.9956" Longitude:W 89° 56' 13.204". But I have not found any way to obtain a similar values from this dataset. Any ideas?

4

1 回答 1

0

这个链接参考我写了以下函数,它运行良好:

Private Function ConvertHexToLatLng(h As String) As Double
    Dim intDec As Integer
    intDec = Convert.ToInt32(h, 16)
    Dim dblLatOrLng As Double
    If intDec < Convert.ToInt32("7FFFFFFF", 16) Then
        dblLatOrLng = intDec * 0.0000001
    Else
        dblLatOrLng = 0 - ((Convert.ToInt32("FFFFFFFF", 16) - intDec) * 0.0000001)
    End If
    Return dblLatOrLng
End Function
于 2015-03-04T16:59:55.913 回答