SqlSpatialFunctions.Filter Method

 

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.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticFilter(DbGeography, DbGeography)

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

System_CAPS_pubmethodSystem_CAPS_staticFilter(DbGeometry, DbGeometry)

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


SqlSpatialFunctions.Filter Method (DbGeography, DbGeography)

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

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geographyOther")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geographyValue")]
[DbFunctionAttribute("SqlServer", "FILTER")]
public static Nullable<bool> Filter(
	DbGeography geographyValue,
	DbGeography geographyOther
)

Parameters

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

The geography value.

geographyOther
Type: System.Data.Entity.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.


SqlSpatialFunctions.Filter Method (DbGeometry, DbGeometry)

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

[DbFunctionAttribute("SqlServer", "FILTER")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geometryValue")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geometryOther")]
public static Nullable<bool> Filter(
	DbGeometry geometryValue,
	DbGeometry geometryOther
)

Parameters

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

The geometry value.

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

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.