Condividi tramite


ConvexHullAggregate (tipo di dati geography)

Si applica a:SQL ServerDatabase SQL di AzureIstanza gestita di SQL di AzureDatabase SQL in Microsoft Fabric

Restituisce una struttura convessa per un set specificato di oggetti geography.

Syntax

  
ConvexHullAggregate ( geography_operand )  

Arguments

geography_operand
Colonna della tabella di tipo geography che rappresenta un set di oggetti geography.

Tipi restituiti

Tipo SQL Server restituito: geography

Exception

Genera un'eccezione FormatException in presenza di valori di input non validi. Vedere STIsValid (tipo di dati geography)

Remarks

Il metodo restituisce Null quando l'input è vuoto o dispone di SRID diversi. Vedere Identificatori SRID

Il metodo ignora gli input Null.

Note

Il metodo restituisce Null se tutti i valori immessi sono Null.

Examples

Nell'esempio seguente viene restituita una struttura convessa del set di oggetti geography.

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

Vedere anche

Metodi geography statici estesi