Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

도형 유형으로 필터링

항목값
화면 이름Filter by geometry type
식별자geometryFilterV1
지원 실행 방식Batch, Faster, Streaming
범주지리공간 (Geospatial)
반환 자료형Geometry

지정한 유형에 해당하지 않는 도형 열의 값을 null로 바꿉니다.

입력 인자

이름지정 여부자료형의미와 조건
Expression필수Expression<Geometry>필터링할 도형 열입니다.
Geometry types필수Set<Enum<Feature, FeatureCollection, GeometryCollection, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon>>유지할 도형 유형 집합입니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Expression: geometry
  • Geometry types: {POINT}
geometry출력
{"type":"Point","coordinates": [32.0, 58.0]}{"type":"Point","coordinates": [32.0, 58.0]}

예시 2: 기본 동작

인자 값:

  • Expression: geometry
  • Geometry types: {POINT}
geometry출력
{"type":"LineString","coordinates":[[-112.94377956164206,34.81725414459382],[-112.94377956164206,30.006795384733323]]}null

예시 3: 기본 동작

인자 값:

  • Expression: geometry
  • Geometry types: {LINESTRING}
geometry출력
{"type":"LineString","coordinates":[[-112.94377956164206,34.81725414459382],[-112.94377956164206,30.006795384733323]]}{"type":"LineString","coordinates":[[-112.94377956164206,34.81725414459382],[-112.94377956164206,30.006795384733323]]}
{"type": "GeometryCollection","geometries": [{"type":"LineString","coordinates":[[-77.07368071728229...null

예시 4: 기본 동작

인자 값:

  • Expression: geometry
  • Geometry types: {LINESTRING, POINT}
geometry출력
{"type":"LineString","coordinates":[[-112.94377956164206,34.81725414459382],[-112.94377956164206,30.006795384733323]]}{"type":"LineString","coordinates":[[-112.94377956164206,34.81725414459382],[-112.94377956164206,30.006795384733323]]}
{"type":"Point","coordinates": [32.0, 58.0]}{"type":"Point","coordinates": [32.0, 58.0]}

예시 5: null 처리

인자 값:

  • Expression: geometry
  • Geometry types: {POINT}
geometry출력
nullnull

긴 구조값 안의 줄임표는 생략한 내용을 나타냅니다.