ドキュメントの検索
karat

+

K

APIリファレンス ↗

注: 以下の翻訳の正確性は検証されていません。AIPを利用して英語版の原文から機械的に翻訳されたものです。

ジオメトリをカバーするH3インデックスを取得する

対応している: バッチ, ストリーミング

特定の解像度でジオメトリをH3インデックスに変換します。解像度は0から15までの間である必要があります。多角形の場合、以下の3つの変換がサポートされています: a) 多角形を完全にカバーするH3インデックス, b) 多角形に完全に含まれるH3インデックス, c) 中心が多角形内に含まれるH3インデックス。予想されるH3インデックスの数が700万を超える場合はnullを返します。 表現カテゴリー: 地理空間

宣言された引数

  • カバータイプ - 多角形のH3カバーのタイプを指定します。
    Enum<Centroid, Inner, Outer>
  • ジオメトリ - タイプが多角形、ライン、またはポイントのGeoJSON。
    Expression<Geometry>
  • 解像度 - 0から15まで(両端を含む)のH3グリッド解像度。
    Expression<Byte | Integer | Long | Short>

出力タイプ: Array<H3 Index>

例 1 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 5
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 85283473fffffff ]
nullnull
{"type":"Polygon","coordinates":[[]]}[ ]
{"type":"Polygon","coordinates":[]}null
{"type":"MultiPolygon","coordinates":[[]]}null
{"type":"MultiPolygon","coordinates":[[[],[]]]}[ ]
{"type":"MultiPolygon","coordinates":[]}[ ]

例 2 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 6
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff, 8628347a7ffffff ]

例 3 - ベースケース

引数の値:

  • カバータイプ: INNER
  • ジオメトリ: polygon
  • 解像度: 6
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 862834707ffffff ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 862834707ffffff, 862834717ffffff ]

例 4 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 6
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 86283408fffffff, 86283409fffffff, 8628340d7ffffff, 8628340dfffffff, 86283444fffffff, 86283446fffffff, 862834627ffffff, 862834637ffffff, 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff, 862834757ffffff, 862834777ffffff, 8628347a7ffffff, 8628347afffffff ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 86283408fffffff, 86283409fffffff, 8628340d7ffffff, 8628340dfffffff, 86283444fffffff, 86283445fffffff, 86283446fffffff, 8628344efffffff, 862834627ffffff, 862834637ffffff, 862834707ffffff, 86283470fffffff, 862834717ffffff, 86283471fffffff, 862834727ffffff, 86283472fffffff, 862834737ffffff, 862834757ffffff, 862834777ffffff, 8628347a7ffffff, 8628347afffffff, 8628347b7ffffff ]

例 5 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 2
polygon:arrow_right:出力
{"coordinates":[[[-112.94377956164206,34.81725414459382],[-112.94377956164206,33.006795384733323], [-111.40638298151816,33.006795384733323],[-88.40638298151816,34.81725414459382],[-112.94377956164206,34.81725414459382]]],"type":"Polygon"}[ 82264ffffffffff, 82265ffffffffff, 8226c7fffffffff, 8226cffffffffff, 8226d7fffffffff, 8226dffffffffff, 8226effffffffff, 8229b7fffffffff, 82444ffffffffff, 82445ffffffffff, 8248c7fffffffff, 8248cffffffffff, 8248d7fffffffff, 8248dffffffffff, 8248effffffffff ]

例 6 - ベースケース

引数の値:

  • カバータイプ: INNER
  • ジオメトリ: polygon
  • 解像度: 5
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 85283473fffffff ]
nullnull
{"type":"Polygon","coordinates":[[]]}[ ]
{"type":"Polygon","coordinates":[]}null
{"type":"MultiPolygon","coordinates":[[]]}null
{"type":"MultiPolygon","coordinates":[[[],[]]]}[ ]
{"type":"MultiPolygon","coordinates":[]}[ ]

例 7 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 4
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ ]

例 8 - ベースケース

引数の値:

  • カバータイプ: INNER
  • ジオメトリ: polygon
  • 解像度: 4
polygon:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ ]

例 9 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 8428341ffffffff, 8428345ffffffff, 8428347ffffffff ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.7222328902491, 37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 8428341ffffffff, 8428345ffffffff, 8428347ffffffff ]

例 10 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 5
ポリゴン:arrow_right:出力
nullnull
{"type":"Polygon","coordinates":[[]]}[ ]
{"type":"Polygon","coordinates":[]}null
{"type":"MultiPolygon","coordinates":[[]]}null
{"type":"MultiPolygon","coordinates":[[[],[]]]}[ ]
{"type":"MultiPolygon","coordinates":[]}[ ]
{"type":"Polygon","coordinates":[[[-121.91508032705622,37.2713558667319],[-121.86222328902491,37.353926450852256],[-121.92354999630156,37.42834118609436],[-122.03773496427027,37.42012867767779],[-122.090428929044,37.33755608435299],[-122.02910130918998,37.26319797461824],[-121.91508032705622,37.2713558667319]]]}[ 8528340bfffffff, 8528340ffffffff, 85283447fffffff, 85283463fffffff, 85283473fffffff, 85283477fffffff, 8528347bfffffff ]

例 11 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 3
ポリゴン:arrow_right:出力
{"type":"MultiLineString","coordinates":[[[0,0],[15,15],[30,-15],[45,15],[60,0]],[[15,30],[-15,-15]]]}[ 833f80fffffffff, 833f82fffffffff, 833f85fffffffff, 833f91fffffffff, 833f93fffffffff, 833faefffffffff, 8352c5fffffffff, 8352c9fffffffff, 8352ccfffffffff, 8352cdfffffffff, 8352d0fffffffff, 8352d2fffffffff, 8352d4fffffffff, 8352d6fffffffff, 8352e2fffffffff, 8352e3fffffffff, 8352e6fffffffff, 8352eafffffffff, 8352f1fffffffff, 8352f3fffffffff, 8352f5fffffffff, 835804fffffffff, 835814fffffffff, 835816fffffffff, 835820fffffffff, 835821fffffffff, 835822fffffffff, 835823fffffffff, 835831fffffffff, 835833fffffffff, 835840fffffffff, 835841fffffffff, 835842fffffffff, 835845fffffffff, 83584afffffffff, 83584efffffffff, 835850fffffffff, 835851fffffffff, 835852fffffffff, 835855fffffffff, 835859fffffffff, 835889fffffffff, 83588afffffffff, 83588bfffffffff, 835899fffffffff, 83589afffffffff, 83589bfffffffff, 8358a0fffffffff, 8358a4fffffffff, 8358a5fffffffff, 8358a6fffffffff, 8358b0fffffffff, 8358b2fffffffff, 8358b5fffffffff, 8358e0fffffffff, 8358e1fffffffff, 8358e2fffffffff, 8358f0fffffffff, 8358f1fffffffff, 8358f2fffffffff, 8358f3fffffffff, 835940fffffffff, 835944fffffffff, 835945fffffffff, 835946fffffffff, 835950fffffffff, 835952fffffffff, 835955fffffffff, 835963fffffffff, 83596cfffffffff, 83596efffffffff, 836282fffffffff, 836283fffffffff, 836286fffffffff, 836299fffffffff, 83629dfffffffff, 8362b0fffffffff, 8362b1fffffffff, 8362b4fffffffff, 836390fffffffff, 836393fffffffff, 836396fffffffff, 83639afffffffff, 83639efffffffff, 836a80fffffffff, 836a83fffffffff, 836a84fffffffff, 836a99fffffffff, 836a9dfffffffff, 836aa2fffffffff, 836aa6fffffffff, 836b80fffffffff, 836b83fffffffff, 836b84fffffffff, 836b99fffffffff, 836b9dfffffffff, 836ba0fffffffff, 836ba2fffffffff, 836ba3fffffffff, 836ba4fffffffff, 836ba6fffffffff, 837419fffffffff, 83741bfffffffff, 83741dfffffffff, 837421fffffffff, 837425fffffffff, 83742afffffffff, 83742efffffffff, 837489fffffffff, 8374d6fffffffff, 8374f0fffffffff, 8374f2fffffffff, 8374f4fffffffff, 837509fffffffff, 83750dfffffffff, 837528fffffffff, 83752bfffffffff, 83752cfffffffff, 83752dfffffffff, 837541fffffffff, 837545fffffffff, 83754efffffffff, 837552fffffffff, 837556fffffffff, 837561fffffffff, 837565fffffffff, 83756afffffffff, 83756efffffffff, 837a40fffffffff, 837a42fffffffff, 837a45fffffffff, 837a51fffffffff, 837a53fffffffff, 837a6cfffffffff, 837a6efffffffff, 837a92fffffffff, 837ac1fffffffff, 837ac3fffffffff, 837ac5fffffffff, 837adcfffffffff, 837adefffffffff, 837ae8fffffffff, 837aeafffffffff, 837aecfffffffff, 837aedfffffffff, 837aeefffffffff, 8382cbfffffffff, 838500fffffffff, 838503fffffffff, 838504fffffffff, 838522fffffffff, 838526fffffffff, 839600fffffffff, 839603fffffffff, 839604fffffffff, 839606fffffffff, 839610fffffffff, 839612fffffffff, 839614fffffffff, 839615fffffffff, 839619fffffffff, 83961dfffffffff, 839622fffffffff, 839631fffffffff, 839633fffffffff, 839682fffffffff, 839684fffffffff, 839686fffffffff, 839690fffffffff, 839691fffffffff, 839692fffffffff, 839693fffffffff, 839695fffffffff, 8396a1fffffffff, 8396a3fffffffff, 8396c0fffffffff, 8396c3fffffffff, 8396c4fffffffff, 8396d9fffffffff, 8396ddfffffffff, 8396e2fffffffff, 8396e6fffffffff, 839902fffffffff, 839904fffffffff, 839906fffffffff, 839911fffffffff, 839913fffffffff, 839920fffffffff, 839923fffffffff, 839925fffffffff, 83998cfffffffff, 83998efffffffff, 839999fffffffff, 83999bfffffffff, 83999dfffffffff, 8399a8fffffffff, 8399aafffffffff, 8399adfffffffff ]

例 12 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"type":"MultiPoint","coordinates":[[60,60],[60,58],[58,58],[58,60]]}[ 8410c03ffffffff, 8410c47ffffffff, 8410ee7ffffffff, 8410eedffffffff ]

例 13 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 10
ポリゴン:arrow_right:出力
{"type":"Polygon","coordinates":[[[-122.02869363438222,37.26184847647239],[-122.02805421389088,37.26289415469349],[-122.02825804781236,37.26302890565739],[-122.02910130918998,37.26319797461824],[-122.02974072554488,37.262692293937455],[-122.02953688465873,37.26201754675554],[-122.02869363438222,37.26184847647239]]]}[ 8a283408b2c7fff, 8a283408b2cffff, 8a283408b2dffff, 8a283408b2effff, 8a28340d6597fff, 8a28340d65b7fff, 8a2834725967fff ]

例 14 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"coordinates":[[[[60,60],[60,58],[58,58],[58,60],[60,60]],[[59.5,59.7],[59.8,58.1],[58.1,58.2],[58.2,59.4],[59.5,59.7]]], [[[55,56],[55.5,55.7],[55.7,55.7],[55,57],[55,56]]]],"type":"MultiPolygon"}[ 8410c01ffffffff, 8410c47ffffffff, 8410c57ffffffff, 8410e33ffffffff, 8410ee5ffffffff, 8410ee7ffffffff, 8410f23ffffffff ]

例 15 - ベースケース

引数の値:

  • カバータイプ: INNER
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"coordinates":[[[[60,60],[60,58],[58,58],[58,60],[60,60]],[[59.5,59.7],[59.8,58.1],[58.1,58.2],[58.2,59.4],[59.5,59.7]]], [[[55,56],[55.5,55.7],[55.7,55.7],[55,57],[55,56]]]],"type":"MultiPolygon"}[ ]

例 16 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"coordinates":[[[[60,60],[60,58],[58,58],[58,60],[60,60]],[[59.5,59.7],[59.8,58.1],[58.1,58.2],[58.2,59.4],[59.5,59.7]]], [[[55,56],[55.5,55.7],[55.7,55.7],[55,57],[55,56]]]],"type":"MultiPolygon"}[ 8410c01ffffffff, 8410c03ffffffff, 8410c09ffffffff, 8410c0bffffffff, 8410c0dffffffff, 8410c1dffffffff, 8410c43ffffffff, 8410c47ffffffff, 8410c4bffffffff, 8410c51ffffffff, 8410c53ffffffff, 8410c57ffffffff, 8410c59ffffffff, 8410c5bffffffff, 8410c5dffffffff, 8410d49ffffffff, 8410e33ffffffff, 8410e37ffffffff, 8410eadffffffff, 8410ee5ffffffff, 8410ee7ffffffff, 8410eedffffffff, 8410f03ffffffff, 8410f07ffffffff, 8410f23ffffffff, 8410f27ffffffff, 8410f2bffffffff, 8410f3dffffffff ]

例 17 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 3
ポリゴン:arrow_right:出力
{"coordinates":[[[-110, 38], [-110,82],[-170,82],[-170,38],[-110, 38]]],"type":"Polygon"}[ 83100afffffffff, 831018fffffffff, 831019fffffffff, 83101afffffffff, 83101bfffffffff, 83101dfffffffff, 831081fffffffff, 831082fffffffff, 831083fffffffff, 83108bfffffffff, 83108cfffffffff, 83108efffffffff, 831091fffffffff, 831093fffffffff, 831098fffffffff, 831099fffffffff, 83109afffffffff, 83109bfffffffff, 83109cfffffffff, 83109dfffffffff, 83109efffffffff, 8310a8fffffffff, 8310a9fffffffff, 8310aafffffffff, 8310abfffffffff, 8310adfffffffff, 8310c0fffffffff, 8310c1fffffffff, 8310c2fffffffff, 8310c4fffffffff, 8310c5fffffffff, 8310c6fffffffff, 8310d0fffffffff, 8310d1fffffffff, 8310d2fffffffff, 8310d3fffffffff, 8310d4fffffffff, 8310d5fffffffff, 8310d6fffffffff, 8310e0fffffffff, 8310e2fffffffff, 8310e3fffffffff, 8310e4fffffffff, 8310e6fffffffff, 8310eafffffffff, 8310eefffffffff, 8310f0fffffffff, 8310f1fffffffff, 8310f3fffffffff, 8310f4fffffffff, 8310f5fffffffff, 832100fffffffff, 832104fffffffff, 832105fffffffff, 832120fffffffff, 832121fffffffff, 832122fffffffff, 832123fffffffff, 832124fffffffff, 832125fffffffff, 832126fffffffff, 83212cfffffffff, 83212efffffffff, 832131fffffffff, 832134fffffffff, 832135fffffffff ]

例 18 - ベースケース

引数の値:

  • カバータイプ: CENTROID
  • ジオメトリ: polygon
  • 解像度: 4
ポリゴン:arrow_right:出力
{"type":"MultiLineString","coordinates":[[[60,60],[60,58],[58,58],[58,60]],[[59.8,58.1],[58.1,58.2],[58.2,59.4],[59.5,59.7]],[[55,56],[55.5,55.7],[55.7,55.7],[55,57]]]}[ 8410c01ffffffff, 8410c03ffffffff, 8410c09ffffffff, 8410c0bffffffff, 8410c0dffffffff, 8410c1dffffffff, 8410c43ffffffff, 8410c47ffffffff, 8410c4bffffffff, 8410c53ffffffff, 8410c57ffffffff, 8410c59ffffffff, 8410c5bffffffff, 8410c5dffffffff, 8410d49ffffffff, 8410e33ffffffff, 8410e37ffffffff, 8410eadffffffff, 8410ee7ffffffff, 8410eedffffffff, 8410f03ffffffff, 8410f07ffffffff, 8410f23ffffffff, 8410f27ffffffff, 8410f3dffffffff ]

例 19 - ベースケース

引数の値:

  • カバータイプ: OUTER
  • ジオメトリ: polygon
  • 解像度: 9
ポリゴン:arrow_right:出力
{"coordinates":[[[-110, 38], [-110,82],[-170,82],[-170,38],[-110, 38]]],"type":"Polygon"}null