注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。
支持于: 批处理, 流处理
使用地球的球面近似值返回几何图形的质心或“质心”。如果几何图形是混合维度的集合,则只有最高维度的元素会对质心产生贡献(例如,在点、线和多边形的集合中,点和线将被忽略)。
表达式类别: 地理空间
输出类型: GeoPoint
参数值:
geometry
geometry | 输出 |
---|---|
{"type":"Polygon","coordinates":[[[-1.0,-1.0],[1.0,-1.0],[1.0,1.0],[-1.0,1.0],[-1.0,-1.0]]]} | { 纬度: 0.0, 经度: 0.0, } |
{"type":"LineString","coordinates":[[30.0,0.0],[35.0,0.0],[50.0,0.0]]} | { 纬度: 0.0, 经度: 40.0, } |
{"type":"MultiPoint","coordinates":[[0.0,0.0],[0.0,1.0]]} | { 纬度: 0.5, 经度: 0.0, } |
{"type":"MultiPoint","coordinates":[[160.0,0.0],[-170.0,0.0]]} | { 纬度: 0.0, 经度: 175.0, } |
{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[0.0,-0.017981],[0.0017... | { 纬度: 0.0, 经度: 0.0, } |
null | null |