geography オブジェクトのセットに対して和集合演算を実行します。
構文
UnionAggregate ( geography_operand )
引数
- geography_operand
和集合演算を実行する geography オブジェクトのセットを保持する geography 型のテーブルの列を指定します。
戻り値の型
SQL Server の戻り値の型: geography
説明
入力の SRID が異なる場合、null が返されます。 「SRID (Spatial Reference Identifier)」を参照してください。
null 入力は無視されます。
注 |
|---|
入力されたすべての値が null の場合、null が返されます。 |
使用例
次の例は、都市内の geography ロケーション ポイントのセットで UnionAggregate を実行します。
USE AdventureWorks2012
GO
SELECT City,
geography::UnionAggregate(SpatialLocation) AS SpatialLocation
FROM Person.Address
WHERE PostalCode LIKE('981%')
GROUP BY City;
注