跳转至

Convert to Ontology GeoPoint(转换为 Ontology GeoPoint)

Supported in: Batch, Faster, Streaming

Convert a GeoPoint into a string that the Ontology will accept for a geo-indexed column (a geohash type column). Ontology GeoPoints are strings of the format '{lat},{lon}', where -90 <= lat <= 90 and -180 <= lon <= 180.

Expression categories: Geospatial

Declared arguments

  • Expression: GeoPoint to convert.
    Expression\

Output type: Ontology GeoPoint

Examples

Example 1: Base case

Argument values:

  • Expression: point
point Output
{
latitude: -20.0,
longitude: 80.0,
}
-20.0000000,80.0000000
{
latitude: 38.9031,
longitude: -77.0599,
}
38.9031000,-77.0599000
{
latitude: 41.987654321,
longitude: -99.123456789,
}
41.9876543,-99.1234568
null null


中文翻译


转换为 Ontology GeoPoint

支持:批量(Batch)、快速(Faster)、流式(Streaming)

将 GeoPoint 转换为 Ontology 可接受的字符串格式,用于地理索引列(geohash 类型列)。Ontology GeoPoint 是格式为 '{lat},{lon}' 的字符串,其中 -90 ≤ lat ≤ 90,-180 ≤ lon ≤ 180。

表达式类别: 地理空间(Geospatial)

声明的参数

  • 表达式(Expression): 要转换的 GeoPoint。
    Expression\

输出类型: Ontology GeoPoint

示例

示例 1:基本情况

参数值:

  • 表达式: point
point 输出
{
latitude: -20.0,
longitude: 80.0,
}
-20.0000000,80.0000000
{
latitude: 38.9031,
longitude: -77.0599,
}
38.9031000,-77.0599000
{
latitude: 41.987654321,
longitude: -99.123456789,
}
41.9876543,-99.1234568
null null