Convert GeoPoint to DMS(将 GeoPoint 转换为 DMS)¶
Supported in: Batch, Faster, Streaming
Converts a GeoPoint to a geospatial coordinate string in degrees, minutes, seconds (DMS) format in accordance with a user-chosen format. Possible formats are DDD°MM'SS"H and DDDMMSSssH.
Expression categories: Geospatial
Declared arguments¶
- Format: Outputs GeoPoints to either
DDD°MM'SS"HorDDDMMSSssH.
Enum\ - GeoPoint: GeoPoint to convert to DMS.
Expression\
Output type: String
Examples¶
Example 1: Base case¶
Argument values:
- Format:
DDD_DEGREE_MM_MINUTE_SS_SECOND_sss_H - GeoPoint:
point
| point | Output |
|---|---|
| { latitude: -20.0, longitude: 80.0, } |
020°00'00.000"S 080°00'00.000"E |
| { latitude: 40.13, longitude: 60.32, } |
040°07'48.000"N 060°19'12.000"E |
| { latitude: -45.32142, longitude: 163.2412, } |
045°19'17.112"S 163°14'28.320"E |
Example 2: Base case¶
Argument values:
- Format:
DDD_MMSSss_H - GeoPoint:
point
| point | Output |
|---|---|
| { latitude: 40.13626, longitude: 60.12732, } |
040081053N 060073835E |
| { latitude: -20.0, longitude: 80.0, } |
020000000S 080000000E |
| { latitude: -45.32142, longitude: 163.2412, } |
045191711S 163142831E |
Example 3: Null case¶
Argument values:
- Format:
DDD_MMSSss_H - GeoPoint:
point
| point | Output |
|---|---|
| null | null |
中文翻译¶
将 GeoPoint 转换为 DMS¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
根据用户选择的格式,将 GeoPoint 转换为度、分、秒(DMS)格式的地理坐标字符串。可用的格式为 DDD°MM'SS"H 和 DDDMMSSssH。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- 格式(Format): 将 GeoPoint 输出为
DDD°MM'SS"H或DDDMMSSssH格式。
枚举类型\ - 地理点(GeoPoint): 要转换为 DMS 格式的 GeoPoint。
表达式\
输出类型: 字符串(String)
示例¶
示例 1:基本情况¶
参数值:
- 格式:
DDD_DEGREE_MM_MINUTE_SS_SECOND_sss_H - 地理点:
point
| point | 输出 |
|---|---|
| { latitude: -20.0, longitude: 80.0, } |
020°00'00.000"S 080°00'00.000"E |
| { latitude: 40.13, longitude: 60.32, } |
040°07'48.000"N 060°19'12.000"E |
| { latitude: -45.32142, longitude: 163.2412, } |
045°19'17.112"S 163°14'28.320"E |
示例 2:基本情况¶
参数值:
- 格式:
DDD_MMSSss_H - 地理点:
point
| point | 输出 |
|---|---|
| { latitude: 40.13626, longitude: 60.12732, } |
040081053N 060073835E |
| { latitude: -20.0, longitude: 80.0, } |
020000000S 080000000E |
| { latitude: -45.32142, longitude: 163.2412, } |
045191711S 163142831E |
示例 3:空值情况¶
参数值:
- 格式:
DDD_MMSSss_H - 地理点:
point
| point | 输出 |
|---|---|
| null | null |