Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

도형의 2차원 회전

항목값
화면 이름Geometry rotate 2d
식별자geometryRotate2dV1
지원 실행 방식Streaming
범주지리공간 (Geospatial)
반환 자료형Geometry

지정한 GeoPoint를 중심으로 도형을 시계 방향으로 2차원 회전합니다. 지정한 좌표 참조 체계에서 회전한 뒤 WGS84로 다시 투영합니다.

입력 인자

이름지정 여부자료형의미와 조건
Angle in degrees필수Literal<Double>시계 방향 회전 각도이며 단위는 도입니다.
Centre GeoPoint필수Expression<GeoPoint>회전 중심 GeoPoint입니다. WGS84 좌표로 간주합니다.
Geometry column필수Expression<Geometry>회전할 도형입니다.
Projected coordinate system필수Literal<String>authority:id 형식의 좌표계입니다. 예를 들어 UTM 18N은 EPSG:32618입니다. 도형을 이 좌표계로 투영해 회전한 뒤 WGS84로 되돌립니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Angle in degrees: 90.0
  • Centre GeoPoint: geoPoint
  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
geometrygeoPoint출력
{"type":"Point","coordinates":[1.0, 0.0]}{
 latitude -> 0.0,
 longitude -> 0.0,
}
{"type":"Point","coordinates":[6.123233995736766E-17, -1.0]}

예시 2: 기본 동작

인자 값:

  • Angle in degrees: 270.0
  • Centre GeoPoint: geoPoint
  • Geometry column: geometry
  • Projected coordinate system: EPSG:32618
geometrygeoPoint출력
{"type":"Point","coordinates":[-77.0, 20.0]}{
 latitude -> 22.0,
 longitude -> -76.0,
}
{"type":"Point","coordinates":[-73.8719606865239, 21.041418391118174]}

예시 3: 기본 동작

인자 값:

  • Angle in degrees: 180.0
  • Centre GeoPoint: geoPoint
  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
geometrygeoPoint출력
{"type":"LineString","coordinates":[[0.0, 0.0], [1.0, 0.0]]}{
 latitude -> 1.0,
 longitude -> 1.0,
}
{"type":"LineString","coordinates":[[2.0, 2.0], [0.9999999999999999, 2.0]]}

예시 4: null 처리

인자 값:

  • Angle in degrees: 90.0
  • Centre GeoPoint: geoPoint
  • Geometry column: geometry
  • Projected coordinate system: EPSG:4326
geometrygeoPoint출력
nullnullnull