DbSpatialServices.Union Method

 

Computes the union of two specified values.

Namespace:   System.Data.Entity.Spatial
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodUnion(DbGeography, DbGeography)

Computes the union of two DbGeography values.

System_CAPS_pubmethodUnion(DbGeometry, DbGeometry)

Computes the union of two DbGeometry values.


DbSpatialServices.Union Method (DbGeography, DbGeography)

Computes the union of two DbGeography values.

public abstract DbGeography Union(
	DbGeography geographyValue,
	DbGeography otherGeography
)

Parameters

geographyValue
Type: System.Data.Entity.Spatial.DbGeography

The first geography value.

otherGeography
Type: System.Data.Entity.Spatial.DbGeography

The second geography value.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

A new DbGeography value representing the union of geographyValue and otherGeography.

Exception Condition
ArgumentNullException

geographyValue or otherGeography is null.

ArgumentException

geographyValue or otherGeography is not compatible with this spatial services implementation.


DbSpatialServices.Union Method (DbGeometry, DbGeometry)

Computes the union of two DbGeometry values.

public abstract DbGeometry Union(
	DbGeometry geometryValue,
	DbGeometry otherGeometry
)

Parameters

geometryValue
Type: System.Data.Entity.Spatial.DbGeometry

The first geometry value.

otherGeometry
Type: System.Data.Entity.Spatial.DbGeometry

The second geometry value.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

A new DbGeometry value representing the union of geometryValue and otherGeometry.

Exception Condition
ArgumentNullException

geometryValue or otherGeometry is null.

ArgumentException

geometryValue or otherGeometry is not compatible with this spatial services implementation.