SqlSpatialFunctions.Filter Method (DbGeography, DbGeography)

.NET Framework (current version)

Offers a fast, index-only intersection method to determine if a geography instance intersects another SqlGeography instance, assuming an index is available.

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("SqlServer", "FILTER")]
public static Nullable<bool> Filter(
	DbGeography geographyValue,
	DbGeography geographyOther


Type: System.Data.Spatial.DbGeography

The geography value.

Type: System.Data.Spatial.DbGeography

Another geography instance to compare against the instance on which Filter is invoked.

Return Value

Type: System.Nullable<Boolean>

True if a geography instance potentially intersects another SqlGeography instance; otherwise, false.

.NET Framework
Available since 4.5
Return to top