関数latlonRange2JapanMeshCodeList マニュアル

(The documentation of function latlonRange2JapanMeshCodeList)

Last Update: 2025/12/19


◆機能・用途(Purpose)

緯度経度範囲を与えてその範囲を含む日本の地域メッシュコードをリストアップする。
List the regional mesh codes of Japan for a given range of latitude and longitude.


◆形式(Format)

#include <coordinate.h>
inline int latlonRange2JapanMeshCodeList
(const int mesh_order,const double Nmin,const double Nmax,
 const double Emin,const double Emax,int ∗∗meshCodeList)


◆引数(Arguments)

mesh_order リストアップするメッシュコードの次数(1〜3)。
The order of the mesh codes to list (1-3).
Nmin 緯度の下限(°)。
Lower limit latitude (degrees).
Nmax 緯度の上限(°)。
Upper limit latitude (degrees).
Emin 経度の下限(°)。
Lower limit longitude (degrees).
Emax 経度の上限(°)。
Upper limit longitude (degrees).
meshCodeList メッシュコードのリストの代入先。 宣言しただけのint ∗型変数に&を付けて与える。 関数内で配列の動的メモリが確保され、各配列要素に 緯度範囲[Nmin,Nmax]、経度範囲[Emin,Emax]を含む mesh_order次のメッシュコードが代入される。
Memory into which a list of mesh codes is to be inserted. Give an empty int ∗-type variable with &. Within the function, the dynamic memory of an array is allocated, and a mesh code of order mesh_order within a latitude range of [Nmin, Nmax] and a longitude range of [Emin, Emax] is inserted into each array component.


◆戻り値(Return value)

リストアップしたメッシュコードの個数。
The number of mesh codes listed.


◆使用例(Example)

int ∗meshCodes;
int Nmeshes=latlonRange2JapanMeshCodeList (3,35.1234,35.5678,135.6789,136.5432,&meshCodes);


◆補足(Additional notes)

日本の地域メッシュコードについては 関数JapanMeshCode2latlonRangeのマニュアル 参照。
For the regional mesh code of Japan, see the documentation of function JapanMeshCode2latlonRange.