DbSpatialServices.Intersection Method
Computes the intersection of two given values.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | Intersection(DbGeography, DbGeography) | Computes the intersection of two DbGeography values. |
![]() | Intersection(DbGeometry, DbGeometry) | Computes the intersection of two DbGeometry values. |
DbSpatialServices.Intersection Method (DbGeography, DbGeography)
Computes the intersection of two DbGeography values.
public abstract DbGeography Intersection( 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.DbGeographyA new DbGeography value representing the intersection 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.Intersection Method (DbGeometry, DbGeometry)
Computes the intersection of two DbGeometry values.
public abstract DbGeometry Intersection( 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.DbGeometryA new DbGeometry value representing the intersection of geometryValue and otherGeometry.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue or otherGeometry is null. |
ArgumentException | geometryValue or otherGeometry is not compatible with this spatial services implementation. |