Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gilt für: ✅Microsoft Fabric✅Azure Data Explorer✅Azure Monitor✅Microsoft Sentinel
Berechnet die Benachbarten der H3-Zelle.
Weitere Informationen zu H3 Cell.
Syntax
geo_h3cell_neighbors(h3cell)
Erfahren Sie mehr über Syntaxkonventionen.
Parameter
| Name | Type | Erforderlich | Beschreibung |
|---|---|---|---|
| h3cell | string |
✔️ | Ein H3 Cell-Tokenwert, wie er durch geo_point_to_h3cell()berechnet wurde. |
Gibt zurück
Ein Array von H3-Zellnachbarn. Wenn die H3 Cell ungültig ist, erzeugt die Abfrage ein NULL-Ergebnis.
Hinweis
Wenn mehr als imidiate Nachbarn benötigt werden, lesen Sie bitte geo_h3cell_rings().
Beispiele
Im folgenden Beispiel werden die Benachbarten von H3-Zellen berechnet.
print neighbors = geo_h3cell_neighbors('862a1072fffffff')
Output
| Nachbarn |
|---|
| ["862a10727ffffff","862a10707ffffff","862a1070fffffff","862a10777ffff","862a100dfffffff","862a100d7ffffff"] |
Im folgenden Beispiel wird ein Array von Eingabe-H3-Zellen mit seinen Nachbarn berechnet.
let h3cell = '862a1072fffffff';
print cells = array_concat(pack_array(h3cell), geo_h3cell_neighbors(h3cell))
Output
| Zellen |
|---|
| ["862a1072fffffff","862a10727ffffff","862a10707ffffff","862a1070fffff","862a10777ffff","862a100dfffffff","862a100d7ffffff"] |
Im folgenden Beispiel werden die H3-Zellen-Polygone GeoJSON-Geometrieauflistung berechnet.
let h3cell = '862a1072fffffff';
print cells = array_concat(pack_array(h3cell), geo_h3cell_neighbors(h3cell))
| mv-expand cells to typeof(string)
| project polygons = geo_h3cell_to_polygon(cells)
| summarize arr = make_list(polygons)
| project geojson = bag_pack("type", "Feature","geometry", bag_pack("type", "GeometryCollection", "geometries", arr), "properties", bag_pack("name", "polygons"))
Output
| geojson |
|---|
| {"type": "Feature","geometry": {"type": "GeometryCollection","geometries": [ {"type":"Polygon","coordinates":[[-74.002274646159,40.7353760262615022],[-74.046908029686236,040.727986222489115],[-74.0606107122223664,40.69677514034033],[-74.02972408156682,40.672970047595463],[-73.985140983708192,40.680349049267583],[-73.971393761028622,40.71154393543933]],[-74.0022744646159,40.73537602626215022]]]}, {"type":"Polygon","coordinates":[[-74.019448383546617,40.790439140236963],[-74.064132193843633 ,40.783038509825],[-74.07783965342211,40.751803958414136],[-74.046908029686236,40.727986222489115],[-74.0022744646159,40.735376026215022],[-73.988522328408948,40.766594382212254],[-74.01944838354617,40.790439140236963]]]}, {"type":"Polygon","coordinates":[[-74.077839665342211,40.751803958414136],[-74.1224794808745, 40.744383587828388],[-74.1361375042681,40.713156370029125],[-74.1052004095288,40.689365648097258],[-74.060610712223664,40.69675140349033],[-74.046908029686236,40.727986222489115],[-74.077839665342211,40.751803958414136]]]}, {"type":"Polygon","coordinates":[[-74.060610712223664,40.696775140349033],[-74.1052004095288,140.689365648097258],[-74.118853750491638,40.658161927046628],[-74.0879619670209,40.634383824229609],[-74.043422228344933,40.641782462872115],[-74.029724408156682,40.672970047595463],[-74.060610712223664,40.696775140349033]]]}, {"type":"Polygon","coordinates":[[-73.985140983708192,40.680349049267583],[-74.029724408156682;;40.672970047595463],[-74.04342228344933,40.641782462872115],[-74.012581189358343,40.617990065991623],[-73.968047801220749,40.625358290164748],[-73.954305509472675,40.656529678451555],[-73.985140983708192,40.680349049267583]]]}, {"type":"Polygon","coordinates":[[-73.92676604813565,40.718903205013063],[-73.971393761028622 ,40.711543935439333],[-73.985140983708192,40.680349049267583],[-73.954305509472675,40.656529678451555],[-73.90972851565843,40.663878222244435],[-73.895936872069854,40.69505685239637],[-73.926766604813565,40.718903205013063]]]}, {"type":"Polygon","coordinates":[[-73.943844904976629,40.77396402038523],[-73.988522328408948;;40.766594382221254],[-74.0022744646159,40.735376026215022],[-73.97139376102]8622,40.71154393543933],[-73.926766604813565,40.718903205013063],[-73.912969923470314,40.750105305345329],[-73.943844904976629,40.773964402038523]]]}}, "properties": {"name": "polygons"}} |
Im folgenden Beispiel werden Polygonverbünde berechnet, die H3-Zelle und ihre Nachbarn darstellen.
let h3cell = '862a1072fffffff';
print cells = array_concat(pack_array(h3cell), geo_h3cell_neighbors(h3cell))
| mv-expand cells to typeof(string)
| project polygons = geo_h3cell_to_polygon(cells)
| summarize arr = make_list(polygons)
| project polygon = geo_union_polygons_array(arr)
Output
| Polygon |
|---|
| { "type": "Polygon", "coordinates": [[[ -73.926766604813565, 40.718903205013063],[ -73.912969923470314, 40.750105305345329],[ -73.943844904976629, 40.773964402038523],[ -73.988522328408948, 40.766594382212254],[ -74.019448383546617, 40.79043914023697],[ -74.064132193843633, 40.783038509825005],[ -74.077839665342211, 40.751803958414136],[ -74.1224794808745, 40.744383587828388],[ -74.1361375042681, 40.713156370029125],[ -74.1052004095288, 40.689365648097251],[ -74.118853750491638, 40.658161927046628],[ -74.0879619670209, 40.6343838242296],[ -74.043422283844933, 40.641782462872115],[ -74.012581189358343, 40.617990065981623],[ -73.968047801220749, 40.625358290164755],[ -73.954305509472675, 40.656529678451555],[ -73.909728515658443, 40.663878222244442],[ -73.895936872069854, 40.695056852396377],[ -73.926766604813565, 40.718903205013063]]]} |
The following example returns true because of the invalid H3 Cell token input.
print invalid = isnull(geo_h3cell_neighbors('abc'))
Output
| Ungültig |
|---|
| 1 |