Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

도형의 3차원 아핀 변환

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

입력 도형에 3차원 아핀 변환을 적용합니다. 사용자 지정 투영 좌표계에서 변환한 뒤 WGS84로 다시 투영합니다. 2차원 입력의 z는 변환 전에 0으로 설정하며 결과는 3차원입니다. 각 좌표에 대한 동차 좌표 행렬 연산의 앞 세 성분을 반환합니다.

[[x0, x1, x2, x-offset],
 [y0, y1, y2, y-offset],
 [z0, z1, z2, z-offset],
 [0,  0,  0,  1]] * [x, y, z, 1]

입력 인자

이름지정 여부자료형의미와 조건
Geometry column필수Expression<String>아핀 변환을 적용할 도형입니다.
Projected coordinate system필수Literal<String>authority:id 형식의 좌표계입니다. 예를 들어 UTM 18N은 EPSG:32618입니다. 도형을 이 좌표계로 옮겨 아핀 변환한 뒤 WGS84로 되돌립니다.
X offset선택Literal<Double>행렬의 (0,3) 값이며 기본값은 0.0입니다. 투영 좌표계에서 양의 x 방향으로 이동할 거리를 나타냅니다.
X0선택Literal<Double>행렬의 (0,0) 값이며 기본값은 1.0입니다.
X1선택Literal<Double>행렬의 (0,1) 값이며 기본값은 0.0입니다.
X2선택Literal<Double>행렬의 (0,2) 값이며 기본값은 0.0입니다.
Y offset선택Literal<Double>행렬의 (1,3) 값이며 기본값은 0.0입니다. 투영 좌표계에서 양의 y 방향으로 이동할 거리를 나타냅니다.
Y0선택Literal<Double>행렬의 (1,0) 값이며 기본값은 0.0입니다.
Y1선택Literal<Double>행렬의 (1,1) 값이며 기본값은 1.0입니다.
Y2선택Literal<Double>행렬의 (1,2) 값이며 기본값은 0.0입니다.
Z offset선택Literal<Double>행렬의 (2,3) 값이며 기본값은 0.0입니다. 투영 좌표계에서 양의 z 방향으로 이동할 거리를 나타냅니다.
Z0선택Literal<Double>행렬의 (2,0) 값이며 기본값은 0.0입니다.
Z1선택Literal<Double>행렬의 (2,1) 값이며 기본값은 0.0입니다.
Z2선택Literal<Double>행렬의 (2,2) 값이며 기본값은 1.0입니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 0.0
  • X0: 0.0
  • X1: -1.0
  • X2: 0.0
  • Y offset: 0.0
  • Y0: 1.0
  • Y1: 0.0
  • Y2: 0.0
  • Z offset: 0.0
  • Z0: 0.0
  • Z1: 0.0
  • Z2: 0.0
geometry출력
{"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":[[[0.0, 0.0, 0.0],[0.0, 1.0, 0.0],[-1.0, 1.0, 0.0],[-1.0, 0.0, 0.0],[0.0, 0.0, 0.0]]]}

예시 2: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • X0: 0.0
  • X1: -3.0
  • X2: 0.0
  • Y offset: 2.0
  • Y0: 0.0
  • Y1: 2.0
  • Y2: 0.0
  • Z offset: 3.0
  • Z0: 0.0
  • Z1: 0.0
  • Z2: 1.0
geometry출력
{"type":"Polygon","coordinates":[[[0.0, 0.0, 1.0],[1.0, 0.0, 2.0],[1.0, 1.0, 3.0],[0.0, 1.0, 2.0],[0.0, 0.0, 1.0]]]}{"type":"Polygon","coordinates":[[[1.0, 2.0, 4.0],[1.0, 2.0, 5.0],[-2.0, 4.0, 6.0],[-2.0, 4.0, 5.0],[1.0, 2.0, 4.0]]]}

예시 3: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 0.0
  • X0: 2.0
  • X1: 0.0
  • X2: 0.0
  • Y offset: 0.0
  • Y0: 0.0
  • Y1: 3.0
  • Y2: 0.0
  • Z offset: 0.0
  • Z0: 0.0
  • Z1: 0.0
  • Z2: 4.0
geometry출력
{"type":"Point","coordinates":[1.0, 2.0, 3.0]}{"type":"Point","coordinates":[2.0, 6.0, 12.0]}
{"type":"LineString","coordinates":[[0.0, 1.0, 1.0], [1.0, 2.0, 3.0]]}{"type":"LineString","coordinates":[[0.0, 3.0, 4.0],[2.0, 6.0, 12.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":[[[0.0, 0.0, 0.0],[2.0, 0.0, 0.0],[2.0, 3.0, 0.0],[0.0, 3.0, 0.0],[0.0, 0.0, 0.0]]]}

예시 4: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 0.0
  • X0: 1.0
  • X1: 1.0
  • X2: 0.0
  • Y offset: 0.0
  • Y0: 0.0
  • Y1: 1.0
  • Y2: 0.0
  • Z offset: 0.0
  • Z0: 0.0
  • Z1: 0.0
  • Z2: 0.0
geometry출력
{"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":[[[0.0, 0.0, 0.0],[1.0, 0.0, 0.0],[2.0, 1.0, 0.0],[1.0, 1.0, 0.0],[0.0, 0.0, 0.0]]]}

예시 5: 기본 동작

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
  • X offset: 1.0
  • X0: 1.0
  • X1: 0.0
  • X2: 0.0
  • Y offset: 1.0
  • Y0: 0.0
  • Y1: 1.0
  • Y2: 0.0
  • Z offset: 1.0
  • Z0: 0.0
  • Z1: 0.0
  • Z2: 1.0
geometry출력
{"type":"Point","coordinates":[1.0, 2.0, 3.0]}{"type":"Point","coordinates":[2.0, 3.0, 4.0]}
{"type":"LineString","coordinates":[[0.0, 1.0, 2.0], [1.0, 2.0, 3.0]]}{"type":"LineString","coordinates":[[1.0, 2.0, 3.0],[2.0, 3.0, 4.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, 2.0, 1.0],[1.0, 2.0, 1.0],[1.0, 1.0, 1.0]]]}

예시 6: null 처리

인자 값:

  • Geometry column: geometry
  • Projected coordinate system: EPSG:32618
  • X offset: 0.0
  • X0: 2.0
  • X1: 0.0
  • X2: 0.0
  • Y offset: 0.0
  • Y0: 3.0
  • Y1: 0.0
  • Y2: 0.0
  • Z offset: 0.0
  • Z0: 4.0
  • Z1: 0.0
  • Z2: 0.0
geometry출력
nullnull