「Map2D(API)」の版間の差分
提供: Eospedia
行8: | 行8: | ||
== API == | == API == | ||
+ | === 図法モードによる座標の計算 === | ||
+ | 入力: rotx, roty: 回転角, nx, ny: 分割数, mode: 図法モード<br> | ||
+ | 出力: x, y: 画像の座標 | ||
+ | extern void map2DCoordGet(Map2DParaTypeReal* x, Map2DParaTypeReal* y, | ||
+ | Map2DParaTypeReal rotx, Map2DParaTypeReal roty, | ||
+ | long nx, long ny, long mode); | ||
+ | <table border="1"> | ||
+ | <tr> | ||
+ | <th>mode</th> | ||
+ | <th>図法モード</th> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>0</td> | ||
+ | <td>メルカトル</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>1</td> | ||
+ | <td>モルワイデ</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br> | ||
+ | |||
+ | === 緯度毎の画像数及び角度刻みの算出 === | ||
+ | 入力: latitude: 緯度, nparallel: 緯度の分割数, mode: 図法モード<br> | ||
+ | 出力: n: 緯度毎の画像数, d: 緯度毎の赤道角の刻み | ||
extern void map2DParallelInfo(Map2DParaTypeInteger* n, | extern void map2DParallelInfo(Map2DParaTypeInteger* n, | ||
Map2DParaTypeReal* d, | Map2DParaTypeReal* d, | ||
行13: | 行38: | ||
Map2DParaTypeInteger nparallel, | Map2DParaTypeInteger nparallel, | ||
long mode); | long mode); | ||
− | + | <table border="1"> | |
− | + | <tr> | |
− | + | <th>mode</th> | |
− | + | <th>図法モード</th> | |
+ | </tr> | ||
+ | <tr> | ||
+ | <td>0</td> | ||
+ | <td>メルカトル</td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>1</td> | ||
+ | <td>モルワイデ</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | <br> |
2014年10月2日 (木) 07:08時点における版
General/Map2DはAPI です。
定数
構造体
typedef float Map2DParaTypeReal; typedef long Map2DParaTypeInteger;
API
図法モードによる座標の計算
入力: rotx, roty: 回転角, nx, ny: 分割数, mode: 図法モード
出力: x, y: 画像の座標
extern void map2DCoordGet(Map2DParaTypeReal* x, Map2DParaTypeReal* y, Map2DParaTypeReal rotx, Map2DParaTypeReal roty, long nx, long ny, long mode);
mode | 図法モード |
---|---|
0 | メルカトル |
1 | モルワイデ |
緯度毎の画像数及び角度刻みの算出
入力: latitude: 緯度, nparallel: 緯度の分割数, mode: 図法モード
出力: n: 緯度毎の画像数, d: 緯度毎の赤道角の刻み
extern void map2DParallelInfo(Map2DParaTypeInteger* n, Map2DParaTypeReal* d, Map2DParaTypeReal latitude, Map2DParaTypeInteger nparallel, long mode);
mode | 図法モード |
---|---|
0 | メルカトル |
1 | モルワイデ |