다음을 통해 공유


geo_s2cell_to_central_point()

S2 셀의 중심을 나타내는 지리 공간 좌표를 계산합니다.

Syntax

geo_s2cell_to_central_point(s2cell)

구문 규칙에 대해 자세히 알아봅니다.

매개 변수

이름 형식 필수 Description
s2cell string ✔️ S2 셀 토큰 값은 geo_point_to_s2cell()로 계산되었습니다. S2 셀 토큰 최대 문자열 길이는 16자입니다.

반환

GeoJSON 형식동적 데이터 형식의 지리 공간 좌표 값입니다. S2 셀 토큰이 유효하지 않으면 쿼리는 null 결과를 생성합니다.

참고

GeoJSON 형식은 첫 번째 경도 및 위도 초를 지정합니다.

예제

print point = geo_s2cell_to_central_point("1234567")
| extend coordinates = point.coordinates
| extend longitude = coordinates[0], latitude = coordinates[1]

출력

point 좌표 longitude latitude
{
"type": "Point",
"좌표": [
9.86830731850408,
27.468392925827604
]
}
[
9.86830731850408,
27.468392925827604
]
9.86830731850408 27.4683929258276

다음 예제에서는 잘못된 S2 셀 토큰 입력으로 인해 null 결과를 반환합니다.

print point = geo_s2cell_to_central_point("a")

출력

point