SqlSpatialFunctions.Reduce Method

 

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReduce(DbGeography, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

System_CAPS_pubmethodSystem_CAPS_staticReduce(DbGeometry, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.


SqlSpatialFunctions.Reduce Method (DbGeography, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "tolerance")]
[DbFunctionAttribute("SqlServer", "REDUCE")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geographyValue")]
public static DbGeography Reduce(
	DbGeography geographyValue,
	Nullable<double> tolerance
)

Parameters

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

The geography value.

tolerance
Type: System.Nullable<Double>

The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.


SqlSpatialFunctions.Reduce Method (DbGeometry, Nullable<Double>)

Returns an approximation of the given geography instance produced by running the Douglas-Peucker algorithm on the instance with the given tolerance.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "tolerance")]
[DbFunctionAttribute("SqlServer", "REDUCE")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "geometryValue")]
public static DbGeometry Reduce(
	DbGeometry geometryValue,
	Nullable<double> tolerance
)

Parameters

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

The geometry value.

tolerance
Type: System.Nullable<Double>

The tolerance to input to the Douglas-Peucker algorithm. tolerance must be a positive number.