Show / Hide Table of Contents

Method CombineExtents

CombineExtents(Geometry, Geometry)

Returns the envelope of the two given geometries.

Declaration
public static Envelope CombineExtents(this Geometry geometry1, Geometry geometry2)
Parameters
Type Name Description
Geometry geometry1

A geometry object.

Geometry geometry2

Another geometry object.

Returns
Type Description
Envelope

The maximum extents of the two given geometries.

Remarks

Supports true curves.

Exceptions
Type Condition
ArgumentException

Indicates that geometry1 and geometry2 do not have equivalent spatial references.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.0 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8

CombineExtents(IEnumerable<Geometry>)

Returns the envelope of geometries in the given collection.

Declaration
public static Envelope CombineExtents(this IEnumerable<Geometry> geometries)
Parameters
Type Name Description
IEnumerable<Geometry> geometries

A collection of geometries.

Returns
Type Description
Envelope

The maximum extents of the geometries in the collection.

Remarks

Supports true curves.

Exceptions
Type Condition
ArgumentException

Indicates that the geometries do not have equivalent spatial references.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.1 - 200.8
Xamarin.Android100.1 - 100.14
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.8
Relevant samples
Add ENC exchange set: Display nautical charts per the ENC specification.
Change ENC display settings: Configure the display of ENC content.
Select ENC features: Select features in an ENC layer.
In this article
Provide feedback
Back to top Copyright © 2025 Esri.