H3 Index
resolution と呼ばれ、0 から 15 までの値を取ります。0 は、最も大きく粗いセルを持つ base レベルです。
緯度と経度の組は、グリッドセルを識別する 64 ビットの H3 インデックスに変換できます。
H3 インデックスは主に位置情報のグループ化や、そのほかの地理空間処理に使用されます。
H3 システムの完全な説明は、Uber Engineering のサイトで参照できます。
h3IsValid
h3index— 六角形インデックス番号。UInt64
Query
Response
h3GetResolution
h3index— 六角形インデックス番号。UInt64。
- インデックスの解像度。範囲:
[0, 15]。UInt8。 - インデックスが無効な場合、この関数はランダムな値を返します。インデックスを確認するには h3IsValid を使用してください。UInt8。
Query
Response
h3EdgeAngle
resolution— インデックスの解像度。UInt8。範囲:[0, 15]。
Query
Response
h3EdgeLengthM
resolution— インデックスの解像度。UInt8。範囲:[0, 15]。
Query
Response
h3EdgeLengthKm
resolution— インデックスの解像度。UInt8。範囲:[0, 15]。
Query
Response
geoToH3
(lat, lon) に対応する H3 H3 インデックスを返します。
構文
geoToH3() は (lon, lat) の順序で値を受け取ります。ClickHouse v25.5 以降では、入力値の順序は (lat, lon) です。以前の動作は、設定 geotoh3_argument_order = 'lon_lat' を使用して復元できます。
Example
Query
Response
h3ToGeo
h3Index— H3 インデックス。 UInt64。
h3ToGeo() は (lon, lat) の順序で値を返します。ClickHouse v25.1 以降では、戻り値は (lat, lon) の順序になります。以前の動作は、設定 h3togeo_lon_lat_result_order = true を使用して復元できます。
例
Query
Response
h3ToGeoBoundary
(lat, lon) のペアからなる配列を返します。
構文
h3Index— H3 インデックス。UInt64。
Query
Response
h3kRing
k 以内のすべての H3 hexagons を、ランダムな順序で一覧表示します。
構文
Query
Response
h3PolygonToCells
Query
Response
h3GetBaseCell
index— 六角形インデックス番号。UInt64。
- 六角形のベースセルの番号。UInt8。
Query
Response
h3HexAreaM2
resolution— インデックスの解像度。範囲は[0, 15]です。UInt8。
- 平方メートル単位の面積。Float64。
Query
Response
h3HexAreaKm2
resolution— インデックスの解像度。範囲:[0, 15]。 UInt8。
- 面積 (平方キロメートル) 。 Float64。
Query
Response
h3IndexesAreNeighbors
Query
Response
h3ToChildren
Query
Response
h3ToParent
- 親の H3 index。UInt64
Query
Response
h3ToString
H3Index 表現を文字列表現に変換します。
index— 六角形インデックス番号。UInt64。
- H3インデックスの文字列表現。String。
Query
Response
stringToH3
H3Index (UInt64) 形式に変換します。
構文
index_str— H3インデックスの文字列表現。String
- 六角形インデックス番号。エラー時は 0 を返します。UInt64
Query
Response
h3GetResolution
index— 六角形インデックス番号。UInt64.
- インデックスの解像度。範囲:
[0, 15]。UInt8.
Query
Response
h3IsResClassIII
index— 六角形インデックス番号。UInt64。
Query
Response
h3IsPentagon
index— 六角形インデックス番号。UInt64
Query
Response
h3GetFaces
index— 六角形インデックス番号。UInt64。
Query
Response
h3CellAreaM2
index— 六角形インデックス番号。 UInt64.
- セルの面積 (平方メートル単位) 。 Float64.
Query
Response
h3CellAreaRads2
index— 六角形インデックス番号。UInt64
- 平方ラジアンで表したセルの面積。Float64
Query
Response
h3ToCenterChild
Query
Response
h3ExactEdgeLengthM
index— 六角形インデックス番号。UInt64
- 辺の長さ (メートル単位) の正確な値。Float64
Query
Response
h3ExactEdgeLengthKm
index— 六角形インデックス番号。UInt64
- キロメートル単位の辺の正確な長さ。Float64
Query
Response
h3ExactEdgeLengthRads
index— 六角形インデックス番号。UInt64。
- ラジアン単位での正確な辺の長さ。Float64。
Query
Response
h3NumHexagons
resolution— インデックスの解像度。範囲:[0, 15]。UInt8。
- H3 索引の数。Int64。
Query
Response
h3PointDistM
- メートル単位のハバーサイン距離、または大円距離。Float64。
Query
Response
h3PointDistKm
- ハバーサイン距離、または大円距離 (キロメートル) 。Float64。
Query
Response
h3PointDistRads
- ラジアン単位のハバーサイン距離または大円距離。Float64。
Query
Response
h3GetRes0Indexes
Query
Response
h3GetPentagonIndexes
resolution— インデックスの解像度。範囲:[0, 15]。UInt8。
Query
Response
h3Line
Query
Response
h3Distance
- グリッドセルの数。Int64
Query
Response
h3HexRing
Query
Response
h3GetUnidirectionalEdge
- 単方向エッジの六角形インデックス番号。UInt64。
Query
Response
h3UnidirectionalEdgeIsValid
index— 六角形インデックス番号。UInt64。
Query
Response
h3GetOriginIndexFromUnidirectionalEdge
edge— 一方向エッジを表す六角形インデックス番号。UInt64。
- 始点の六角形インデックス番号。UInt64。
Query
Response
h3GetDestinationIndexFromUnidirectionalEdge
edge— 単方向エッジを表す六角形インデックス番号。UInt64。
- 宛先の六角形インデックス番号。UInt64。
Query
Response
h3GetIndexesFromUnidirectionalEdge
edge— 単方向エッジを表す六角形インデックス番号。UInt64。
tuple(origin,destination) で構成されるタプル:
与えられた入力が無効な場合は (0,0) を返します。
例
Query
Response
h3GetUnidirectionalEdgesFromHexagon
index— 一方向エッジを表す六角形インデックス番号。UInt64
Query
Response
h3GetUnidirectionalEdgeBoundary
index— 一方向エッジを表す六角形インデックス番号。UInt64。
Query
Response