Skip to content

Latest commit

 

History

History
66 lines (51 loc) · 2.09 KB

envelopeaggregate-geography-data-type.md

File metadata and controls

66 lines (51 loc) · 2.09 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom f1_keywords helpviewer_keywords dev_langs monikerRange
EnvelopeAggregate (geography Data Type)
EnvelopeAggregate (geography Data Type)
MladjoA
mlandzic
07/30/2017
sql
t-sql
reference
ignite-2024
EnvelopeAggregate_TSQL
EnvelopeAggregate
EnvelopeAggregate method (geography)
TSQL
=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric

EnvelopeAggregate (geography Data Type)

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

Returns a bounding object for a given set of geography objects. The resulting geography object contains multiple circular arc segments.

Syntax

  
EnvelopeAggregate ( geography_operand )  

Arguments

geography_operand
Is a geography type table column that holds the set of geography objects on which to perform an envelope aggregate operation.

Return Types

[!INCLUDEssNoVersion] return type: geography

Remarks

A FullGlobe object is returned when the resulting bounding object is bigger than a hemisphere. This method is not precise.

Method returns null if 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 performs a EnvelopeAggregate on a set of geography location points within a city.

USE AdventureWorks2022  
GO  
SELECT City,  
geography::EnvelopeAggregate(SpatialLocation) AS SpatialLocation  
FROM Person.Address  
WHERE PostalCode LIKE('981%')  
GROUP BY City;

See Also

Extended Static Geography Methods