开发者

from latitude and longitude to latitudeE6, longitudeE6

hi all i have latitude and longitude points now i have to covert into latitudeE6, longitudeE6.

how to conve开发者_运维百科rt it. pleae guide me.


This is how you should do it:

int latE6 = (int) (lat * 1e6);
int lonE6 = (int) (lon * 1e6);


Maybe on that way?

latE6 = (int) (lat * 1000000)
lonE6 = (int) (lon * 1000000)

UPD:

If you having your values like that x° y' z'', then:

valueE6 = (int) ((x + y / 60 + z / 3600) * 1000000)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜