Convert from Ontology GeoPoint(从 Ontology GeoPoint 转换)¶
Supported in: Batch, Faster, Streaming
Convert an Ontology GeoPoint into a regular GeoPoint. Ontology GeoPoints are strings of the format '{lat},{lon}', where -90 <= lat <= 90 and -180 <= lon <= 180. Regular GeoPoints are structures of the format {"longitude": {long},"latitude": {lat}}.
Expression categories: Geospatial
Declared arguments¶
- Expression: Ontology GeoPoint to convert.
Expression\
Output type: GeoPoint
Examples¶
Example 1: Base case¶
Argument values:
- Expression:
geopoint
| geopoint | Output |
|---|---|
| -20.0000000,80.0000000 | { latitude: -20.0, longitude: 80.0, } |
| 38.9031000,-77.0599000 | { latitude: 38.9031, longitude: -77.0599, } |
| 41.9876543,-99.1234568 | { latitude: 41.9876543, longitude: -99.1234568, } |
Example 2: Null case¶
Argument values:
- Expression:
geopoint
| geopoint | Output |
|---|---|
| 38.9031000, 41.9876543, 80.0000000 | null |
| A, 41.9876543 | null |
| this is a, test string | null |
| null | null |
中文翻译¶
从 Ontology GeoPoint 转换¶
支持:批量处理、快速处理、流式处理
将 Ontology GeoPoint(本体地理点)转换为常规 GeoPoint。Ontology GeoPoint 是格式为 '{lat},{lon}' 的字符串,其中 -90 <= lat <= 90,-180 <= lon <= 180。常规 GeoPoint 是格式为 {"longitude": {long},"latitude": {lat}} 的结构体。
表达式类别: 地理空间
声明的参数¶
- 表达式: 要转换的 Ontology GeoPoint。
表达式\
输出类型: GeoPoint
示例¶
示例 1:基本情况¶
参数值:
- 表达式:
geopoint
| geopoint | 输出 |
|---|---|
| -20.0000000,80.0000000 | { latitude: -20.0, longitude: 80.0, } |
| 38.9031000,-77.0599000 | { latitude: 38.9031, longitude: -77.0599, } |
| 41.9876543,-99.1234568 | { latitude: 41.9876543, longitude: -99.1234568, } |
示例 2:空值情况¶
参数值:
- 表达式:
geopoint
| geopoint | 输出 |
|---|---|
| 38.9031000, 41.9876543, 80.0000000 | null |
| A, 41.9876543 | null |
| this is a, test string | null |
| null | null |