從 geography 物件集建立 GeometryCollection 執行個體。
語法
ConvexHullAggregate ( geography_operand )
引數
- geography_operand
這是 geography 類型資料表的資料行,代表要列在 GeometryCollection 執行個體中的 geography 物件集。
傳回類型
SQL Server 傳回類型:geography
例外狀況
輸入的值無效時,會擲回 FormatException。 請參閱<STIsValid (geography 資料類型)>。
備註
輸入是空的或輸入具有不同 SRID 時,方法會傳回 null。 請參閱<空間參考識別碼 (SRID)>。
方法會忽略 null 輸入。
[!附註]
如果所有輸入的值為 null,方法會傳回 null。
範例
下列範例會傳回包含 geography 物件集的 GeometryCollection 執行個體。
USE AdventureWorks2012
GO
SELECT geography::CollectionAggregate(SpatialLocation).ToString() AS SpatialLocation
FROM Person.Address
WHERE City LIKE ('Bothell')