Create linestring geometry(创建线串几何(linestring geometry))¶
Supported in: Batch, Streaming
Creates a GeoJSON linestring geometry from the given points.
Expression categories: Geospatial
Declared arguments¶
- Points: The points that make up the linestring.
Expression\>
Type variable bounds: T accepts Struct\
Output type: Geometry
Examples¶
Example 1: Base case¶
Argument values:
- Points:
points
| points | Output |
|---|---|
| [ { latitude: 10.0, longitude: 0.0, }, { latitude: 10.0, longitude: 10.0, } ] |
{"type":"LineString","coordinates":[[0.0,10.0],[10.0,10.0]]} |
| [ { latitude: 10.0, longitude: 10.0, }, { latitude: 20.0,<... |
{"type":"LineString","coordinates":[[10.0,10.0],[20.0,20.0],[30.0,30.0]]} |
| [ { latitude: 0.0, longitude: 179.0, }, { latitude: 0.0, longitude: 181.0, } ] |
{"type":"MultiLineString","coordinates":[[[179.0,0.0],[180.0,0.0]],[[-180.0,0.0],[-179.0,0.0]]]} |
| [ { latitude: 0.0, longitude: -179.0, }, { latitude: 0.0, longitude: -181.0, } ] |
{"type":"MultiLineString","coordinates":[[[180.0,0.0],[179.0,0.0]],[[-179.0,0.0],[-180.0,0.0]]]} |
Example 2: Null case¶
Argument values:
- Points:
points
| points | Output |
|---|---|
| null | null |
| [ { latitude: 0.0, longitude: 0.0, }, null ] |
null |
Example 3: Edge case¶
Argument values:
- Points:
points
| points | Output |
|---|---|
| [ ] | null |
| [ { latitude: 0.0, longitude: 0.0, } ] |
null |
中文翻译¶
创建线串几何(linestring geometry)¶
支持:批处理(Batch)、流处理(Streaming)
根据给定的点创建 GeoJSON 线串几何(linestring geometry)。
表达式类别: 地理空间(Geospatial)
声明的参数¶
- Points(点): 构成线串的点。
表达式\>
类型变量约束: T 接受 Struct\
输出类型: Geometry(几何)
示例¶
示例 1:基本情形¶
参数值:
- Points:
points
| points | 输出 |
|---|---|
| [ { latitude: 10.0, longitude: 0.0, }, { latitude: 10.0, longitude: 10.0, } ] |
{"type":"LineString","coordinates":[[0.0,10.0],[10.0,10.0]]} |
| [ { latitude: 10.0, longitude: 10.0, }, { latitude: 20.0,<... |
{"type":"LineString","coordinates":[[10.0,10.0],[20.0,20.0],[30.0,30.0]]} |
| [ { latitude: 0.0, longitude: 179.0, }, { latitude: 0.0, longitude: 181.0, } ] |
{"type":"MultiLineString","coordinates":[[[179.0,0.0],[180.0,0.0]],[[-180.0,0.0],[-179.0,0.0]]]} |
| [ { latitude: 0.0, longitude: -179.0, }, { latitude: 0.0, longitude: -181.0, } ] |
{"type":"MultiLineString","coordinates":[[[180.0,0.0],[179.0,0.0]],[[-179.0,0.0],[-180.0,0.0]]]} |
示例 2:空值情形¶
参数值:
- Points:
points
| points | 输出 |
|---|---|
| null | null |
| [ { latitude: 0.0, longitude: 0.0, }, null ] |
null |
示例 3:边界情形¶
参数值:
- Points:
points
| points | 输出 |
|---|---|
| [ ] | null |
| [ { latitude: 0.0, longitude: 0.0, } ] |
null |