ConvexHullAggregate(geography 数据类型)

适用于:SQL ServerAzure SQL 数据库Azure SQL 托管实例Microsoft Fabric 预览版中的 SQL 数据库

对于给定的一组 geography 对象返回一个凸包

Syntax

  
ConvexHullAggregate ( geography_operand )  

Arguments

geography_operand
表示一组 geography 对象的 geography 类型表列

Return Types

SQL Server 返回类型:geography

Exception

在输入值无效时引发 FormatException。 请参阅 STIsValid(geography 数据类型)

Remarks

在输入为空或具有不同的 SRID 时,方法返回 null。 请参阅空间引用标识符 (SRID)

方法忽略 null 输入

Note

如果所有输入值均为 null,则方法返回 null

Examples

下面的示例返回一组 geography 对象的凸包

USE AdventureWorks2022  
GO  
SELECT geography::ConvexHullAggregate(SpatialLocation).ToString() AS SpatialLocation  
FROM Person.Address  
WHERE City LIKE ('Bothell')

See Also

扩展静态地理方法