投稿者: DAN 日時: 2002年 5月 04日(土) 15:54:22
回答先: Re: 緯度経度の表記について 投稿者: 山野 日時: 2002年 5月 02日(木) 23:23:44
山野さん、こんにちは
>@この4バイトの固定小数点とは何でしょうか?
GARMINプロトコル仕様書にあります。
以下に引用いたします。英語ですみません。
7.4.7. Semicircle_Type
The integer Semicircle_Type is used to indicate latitude and longitude in semicircles, where 2^31 semicircles equals
180 degrees. North latitudes and East longitudes are indicated with positive numbers; South latitudes and West
longitudes are indicated with negative numbers.
typedef struct
{
long lat; /* latitude in semicircles */
long lon; /* longitude in semicircles */
} Semicircle_Type;
The following formulas show how to convert between degrees and semicircles:
degrees = semicircles * ( 180 / 2^ 31 )
semicircles = degrees * ( 2^ 31 / 180 )
>Aカシミ−ルを利用して緯度経度を知る場合の精度は逆を言えば数十メートル(20〜30mくらい?)と考えて良いのでしょうか?
そうですね。25000の地図画像だと地図から読みとれる限界が15m程度
ですので、それより細かいところでは誤差が出ます。
0.1秒程度の誤差はあると思っていただければよろしいかと思います。