从十进制纬度/经度转换为24位或3字节

时间:2016-08-10 07:17:52

标签: 24-bit

我需要将十进制纬度/经度值转换为带符号的24位值。  对于纬度示例,将37.256526值转换为带符号的24位。  规范很好。

The latitude is coded with 24 bits: 1 bit of sign and a number between 0 and 2^23-1 coded in binary on 23 bits. The relation between the coded number N and the range of (absolute) latitudes X it encodes is the following (X in degrees):

0 个答案:

没有答案