적용 대상:SQL Server
Azure SQL Database
Azure SQL Managed Instance
Microsoft Fabric의 SQL 데이터베이스
지리 개체 집합에서 GeometryCollection 인스턴스를 만듭니다.
Syntax
CollectionAggregate ( geography_operand )
Arguments
geography_operand
GeometryCollection 인스턴스에 나열할 지리 개체 집합을 나타내는 지리 형식 테이블 열입니다.
반환 형식
SQL Server 반환 형식: geography
Exception
FormatException 유효하지 않은 입력 값이 있는 경우 throw합니다.
STIsValid(geography 데이터 형식)를 참조하세요.
Remarks
이 메서드는 입력이 비어 있거나 입력에 다른 SRID가 있는 경우 null을 반환합니다. SRID(Spatial Reference Identifier)를 참조하세요.
메서드는 null 입력을 무시합니다.
Note
이 메서드는 모든 입력 값이 null인 경우 null을 반환합니다.
Examples
다음 예제에서는 지리GeometryCollection을 포함하는 인스턴스를 반환 합니다.
USE AdventureWorks2022
GO
SELECT geography::CollectionAggregate(SpatialLocation).ToString() AS SpatialLocation
FROM Person.Address
WHERE City LIKE ('Bothell')