Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

다른 좌표계의 GeoJSON 해석

항목값
화면 이름Parse GeoJSON from a non-WGS 84 coordinate system
식별자parseGeoJsonAsGeometryV1
지원 실행 방식Batch, Faster, Streaming
범주지리공간 (Geospatial)
반환 자료형Geometry

WGS84가 아닌 좌표계의 GeoJSON 문자열을 WGS84 도형으로 변환합니다. 이미 WGS84 경도/위도 좌표이면 Logical type cast로 더 적은 처리 비용으로 변환할 수 있습니다. 파싱이나 변환에 실패하면 null을 반환합니다.

입력 인자

이름지정 여부자료형의미와 조건
GeoJSON string필수Expression<String>GeoJSON 문자열입니다. 온톨로지에서 사용하려면 Prepare geometry에 해당하는 도형 정규화 표현식으로 준비합니다.
Source coordinate system필수Literal<String>authority:id 형식의 좌표계 식별자입니다. 예를 들어 UTM 18N은 EPSG:32618로 지정할 수 있습니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • GeoJSON string: geojson_string
  • Source coordinate system: EPSG:32618
geojson_string출력
{"type":"Point","coordinates":[320000.0,4300000.0]}{"type":"Point","coordinates":[-77.07368071728229,38.83040844313318]}
{"type":"LineString","coordinates":[[320000.0,4300000.0],[320100.0,4300000.0]]}{"type":"LineString","coordinates":[[-77.07368071728229,38.83040844313318],[-77.0725293738795,38.83042888342659]]}
{"type":"Polygon","coordinates":[[[320000.0,4300000.0],[320100.0,4300000.0],[320000.0,4300100.0],[320000.0,4300000.0]]]}{"type":"Polygon","coordinates":[[[-77.07368071728229,38.83040844313318],[-77.0725293738795,38.83042888342659],[-77.07370685720375,38.83130901341597],[-77.07368071728229,38.83040844313318]]]}

예시 2: null 처리

인자 값:

  • GeoJSON string: geojson_string
  • Source coordinate system: EPSG:32618
geojson_string출력
nullnull

예시 3: 경계 조건

인자 값:

  • GeoJSON string: geojson_string
  • Source coordinate system: EPSG:32618
geojson_string출력
invalid geojson stringnull