Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.04 KB

File metadata and controls

65 lines (50 loc) · 2.04 KB
title ConvexHullAggregate (geography Data Type)
description ConvexHullAggregate (geography Data Type)
author MladjoA
ms.author mlandzic
ms.date 07/30/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2025
f1_keywords
ConvexHullAggregate_TSQL
ConvexHullAggregate
helpviewer_keywords
ConvexHullAggregate method (geography)
dev_langs
TSQL
monikerRange =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb

ConvexHullAggregate (geography Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

Returns a convex hull for a given set of geography objects.

Syntax

  
ConvexHullAggregate ( geography_operand )  

Arguments

geography_operand
Is a geography type table column that represents a set of geography objects.

Return Types

[!INCLUDEssNoVersion] return type: geography

Exception

Throws a FormatException when there are input values that are not valid. See STIsValid (geography Data Type)

Remarks

Method returns null when the input is empty or the input has different SRIDs. See Spatial Reference Identifiers (SRIDs)

Method ignores null inputs.

Note

Method returns null if all inputted values are null.

Examples

The following example returns a convex hull of the set of geography objects.

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

See Also

Extended Static Geography Methods