Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

DMS 문자열을 GeoPoint로 변환

항목값
화면 이름Convert DMS to GeoPoint
식별자dmsToGeoPointV1
지원 실행 방식Batch, Faster, Streaming
범주지리공간 (Geospatial)
반환 자료형GeoPoint

도, 분, 초(DMS) 형식의 좌표 문자열을 지정한 형식에 따라 GeoPoint로 변환합니다. 기본 형식은 DDD*°MM*'SS*"H와 DDD*MMSSssH이며 순서대로 시도해 처음 일치한 형식의 결과를 반환합니다.

입력 인자

이름지정 여부자료형의미와 조건
Coordinates필수Expression<String>GeoPoint로 변환할 DMS 좌표입니다.
Formats선택List<Literal<String>>기본 형식은 DDD*°MM*'SS*"H와 DDD*MMSSssH입니다.

입출력 예시

예시 1: 기본 동작

인자 값:

  • Coordinates: coordinates
  • Formats: null
coordinates출력
078261594N075220923E{
 latitude: 78.43776111111112,
 longitude: 75.36923055555555,
}
046115095S069524119W{
 latitude: -46.19748611111111,
 longitude: -69.87810833333333,
}
023°45'55"N 069°52'11"W{
 latitude: 23.76527777777777,
 longitude: -69.86972222222222,
}
-123°55'55"N 069°53'00"W{
 latitude: -123.93194444444445,
 longitude: -69.88333333333334,
}
123456789N23456789E{
 latitude: 123.76885833333333,
 longitude: 23.768858333333334,
}

예시 2: 기본 동작

인자 값:

  • Coordinates: coordinates
  • Formats: [H[orth][est][ast][outh] DDD* degrees, MM* minutes, and SS*.sss* seconds]
coordinates출력
North 75 degrees, 3 minutes, and 0.33 seconds; East 123 degrees, 22 minutes, and 17.2 seconds{
 latitude: 75.05009166666666,
 longitude: 123.37144444444444,
}
South 75 degrees, 3 minutes, and 0.33 seconds; West 123 degrees, 22 minutes, and 17.2 seconds{
 latitude: -75.05009166666666,
 longitude: -123.37144444444444,
}

예시 3: 기본 동작

인자 값:

  • Coordinates: coordinates
  • Formats: null
coordinates출력
hSllo, World!null
02345N123456789Enull
023456784R123456789Enull
023456784N123456789null
023456784R123456789null
078261594N075220923E075220923Nnull
078261594Nnull
23°°45'55"N 069°52'11"Wnull
23° 45' 55"N 069° 52' 11"Wnull
23°55"N 069°52'11"Wnull
23°452233'55"N 069°52'11"Wnull

예시 4: 기본 동작

인자 값:

  • Coordinates: coordinates
  • Formats: [DDD``minutes:``MM``seconds:``SS]
coordinates출력
degrees: 123 minutes: 45 seconds: 67, degrees: 087 minutes: 54 seconds: 32{
 latitude: 123.76861111111111,
 longitude: 87.9088888888889,
}

예시 5: 경계 조건

인자 값:

  • Coordinates: coordinates
  • Formats: [SSSSSSSSS*.sssssss*H]
coordinates출력
123452.4222N 98544.333E{
 latitude: 34.2923395,
 longitude: 27.373425833333332,
}

예시 6: 경계 조건

인자 값:

  • Coordinates: coordinates
  • Formats: [DDD*:MM:SSsss*H]
coordinates출력
123:45:24222N 98:54:4333E{
 latitude: 123.75672833333333,
 longitude: 98.91203611111112,
}
078261594N075220923Enull
-123°55'55"N 069°53'00"Wnull