Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

도형 평행이동

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

도형을 지정한 오프셋만큼 평행이동합니다. 2차원 도형은 z 오프셋을 지정한 경우에만 3차원으로 변환합니다.

입력 인자

이름지정 여부자료형의미와 조건
Geometry column필수Expression<String>평행이동할 도형입니다.
Projected coordinate system필수Literal<String>authority:id 형식의 좌표계입니다. 예를 들어 UTM 18N은 EPSG:32618입니다. 도형을 이 좌표계로 옮겨 평행이동한 뒤 WGS84로 되돌립니다.
X offset필수Literal<Double>좌표 참조 체계에서 양의 x 방향으로 이동할 거리입니다.
Y offset필수Literal<Double>좌표 참조 체계에서 양의 y 방향으로 이동할 거리입니다.
Z offset선택Literal<Double>좌표 참조 체계에서 양의 z 방향으로 이동할 거리입니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • Y offset: -1.0
  • Z offset: null
geometry출력
{"type":"Point","coordinates":[0.0, 0.0]}{"type":"Point","coordinates":[1.0, -1.0]}
{"type":"LineString","coordinates":[[0.0, 0.0], [1.0, 1.0]]}{"type":"LineString","coordinates":[[1.0, -1.0], [2.0, 0.0]]}
{"type":"Polygon","coordinates":[[[0.0, 0.0],[1.0, 0.0],[1.0, 1.0],[0.0, 1.0], [0.0, 0.0]]]}{"type":"Polygon","coordinates":[[[1.0, -1.0],[2.0, -1.0],[2.0, 0.0],[1.0, 0.0],[1.0, -1.0]]]}

예시 2: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • Y offset: -1.0
  • Z offset: 1.0
geometry출력
{"type":"Point","coordinates":[0.0, 0.0]}{"type":"Point","coordinates":[1.0, -1.0, 1.0]}
{"type":"LineString","coordinates":[[0.0, 0.0], [1.0, 1.0]]}{"type":"LineString","coordinates":[[1.0, -1.0, 1.0], [2.0, 0.0, 1.0]]}
{"type":"Polygon","coordinates":[[[0.0, 0.0],[1.0, 0.0],[1.0, 1.0],[0.0, 1.0], [0.0, 0.0]]]}{"type":"Polygon","coordinates":[[[1.0, -1.0, 1.0],[2.0, -1.0, 1.0],[2.0, 0.0, 1.0],[1.0, 0.0, 1.0],[1.0, -1.0, 1.0]]]}

예시 3: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • Y offset: -1.0
  • Z offset: 1.0
geometry출력
{"type":"Point","coordinates":[0.0, 0.0, -1.0]}{"type":"Point","coordinates":[1.0, -1.0, 0.0]}
{"type":"LineString","coordinates":[[0.0, 0.0, -1.0], [1.0, 1.0, -1.0]]}{"type":"LineString","coordinates":[[1.0, -1.0, 0.0], [2.0, 0.0, 0.0]]}
{"type":"Polygon","coordinates":[[[0.0, 0.0, -1.0],[1.0, 0.0, -1.0],[1.0, 1.0, -1.0],[0.0, 1.0, -1.0],[0.0, 0.0, -1.0]]]}{"type":"Polygon","coordinates":[[[1.0, -1.0, 0.0],[2.0, -1.0, 0.0],[2.0, 0.0, 0.0],[1.0, 0.0, 0.0],[1.0, -1.0, 0.0]]]}

예시 4: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:32618
  • X offset: 100.0
  • Y offset: -200.0
  • Z offset: null
geometry출력
{"type":"Point","coordinates":[-77.0, 20.0]}{"type":"Point","coordinates":[-76.99902180032066, 19.99820455178219]}

예시 5: null 처리

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • Y offset: -1.0
  • Z offset: 1.0
geometry출력
nullnull