✅ Azure 流分析 ✅ 构造事件流
返回 GeoJSON LineString 记录。 CreateLineString 的结果可用作其他地理空间函数的输入。
请注意,声明 LineStrings 时:
LineStrings 必须至少有 2 磅。
结构不能在两个或更多个连续点的间隔内重叠自身。
语法
CreateLineString (points)
论点
点
GeoJSON 记录点的列表。
返回类型
返回一条 GeoJSON LineString 记录,其中 LineString 作为类型,并返回一个作为坐标的点数组。
示例:
SELECT
CreateLineString(CreatePoint(input.latitude, input.longitude), CreatePoint(10.0, 10.0), CreatePoint(10.5, 10.5))
FROM input
输入示例
| 纬度 | 经度 |
|---|---|
| 3.0 | -10.2 |
| -87.33 | 20.2321 |
输出示例
{“type” : “LineString”, “coordinates” : [ [-10.2, 3.0], [10.0, 10.0], [10.5, 10.5] ]}
{“type” : “LineString”, “coordinates” : [ [20.2321, -87.33], [10.0, 10.0], [10.5, 10.5] ]}