跳转至

Convert GeoPoint to geometry(将 GeoPoint 转换为几何图形(Geometry))

Supported in: Batch, Faster, Streaming

Convert GeoPoint to a GeoJSON of type point.

Expression categories: Geospatial

Declared arguments

  • Expression: A valid GeoPoint.
    Expression\

Output type: Geometry

Examples

Example 1: Base case

Argument values:

  • Expression: geoPoint
geoPoint Output
{
 latitude -> 58.0,
 longitude -> 32.0,
}
{"type":"Point","coordinates": [32.0, 58.0]}
null null
{
 latitude -> 40.753206,
 longitude -> -73.989015,
}
{"type":"Point","coordinates": [-73.989015, 40.753206]}


中文翻译

将 GeoPoint 转换为几何图形(Geometry)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

将 GeoPoint 转换为类型为点的 GeoJSON。

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

声明的参数

  • 表达式: 一个有效的 GeoPoint。
    表达式\

输出类型: 几何图形(Geometry)

示例

示例 1:基础案例

参数值:

  • 表达式: geoPoint
geoPoint 输出
{
 latitude -> 58.0,
 longitude -> 32.0,
}
{"type":"Point","coordinates": [32.0, 58.0]}
null null
{
 latitude -> 40.753206,
 longitude -> -73.989015,
}
{"type":"Point","coordinates": [-73.989015, 40.753206]}