注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。

几何图形分解为数组

支持于: 批处理, 流处理

将几何图形转换为其组成简单几何图形的数组。

表达式类别: 地理空间

声明的参数

  • 表达式 - 要分解的几何图形。
    表达式<几何图形>

输出类型: 数组<几何图形>

示例

示例 1: 基本情况

参数值:

  • 表达式: geometry
几何图形输出
{"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,1.0],[1.0,1.0],[1.0,0.0],[0.0,0.0]]]}[ {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,1.0],[1.0,1.0],[1.0,0.0],[0.0,0.0]]]} ]
{"type":"MultiPolygon","coordinates":[[[[0.0,0.0],[0.0,1.0],[1.0,1.0],[1.0,0.0],[0.0,0.0]]],[[[5.0,5.0],[5.0,6.0],[6.0,6.0],[6.0,5.0],[5.0,5.0]]]]}[ {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,1.0],[1.0,1.0],[1.0,0.0],[0.0,0.0]]]}, {"type":"Polygon","coordinates":[[[5.0,5.0],[5.0,6.0],[6.0,6.0],[6.0,5.0],[5.0,5.0]]]} ]

示例 2: 基本情况

参数值:

  • 表达式: geometry
几何图形输出
{"type": "GeometryCollection", "geometries": [{"type": "MultiPoint", "coordinates": [[0, 0], [1, 1]]}, {"type": "Polygon", "coordinates": [[[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]]]}]}[ {"type":"Point","coordinates":[0.0,0.0]}, {"type":"Point","coordinates":[1.0,1.0]}, {"type":"Polygon","coordinates":[[[0.0,0.0],[0.0,1.0],[1.0,1.0],[1.0,0.0],[0.0,0.0]]]} ]

示例 3: 空值情况

参数值:

  • 表达式: geometry
几何图形输出
nullnull