SqlSpatialFunctions.Reduce Method

Definition

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

Overloads

Reduce(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.

Reduce(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.

Reduce(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.

public:
 static System::Data::Spatial::DbGeography ^ Reduce(System::Data::Spatial::DbGeography ^ geographyValue, Nullable<double> tolerance);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REDUCE")]
public static System.Data.Spatial.DbGeography Reduce (System.Data.Spatial.DbGeography geographyValue, double? tolerance);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REDUCE")>]
static member Reduce : System.Data.Spatial.DbGeography * Nullable<double> -> System.Data.Spatial.DbGeography
Public Shared Function Reduce (geographyValue As DbGeography, tolerance As Nullable(Of Double)) As DbGeography

Parameters

geographyValue
DbGeography

The geography value.

tolerance
Nullable<Double>

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

Returns

Returns DbGeography.

Attributes

Applies to

Reduce(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.

public:
 static System::Data::Spatial::DbGeometry ^ Reduce(System::Data::Spatial::DbGeometry ^ geometryValue, Nullable<double> tolerance);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REDUCE")]
public static System.Data.Spatial.DbGeometry Reduce (System.Data.Spatial.DbGeometry geometryValue, double? tolerance);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "REDUCE")>]
static member Reduce : System.Data.Spatial.DbGeometry * Nullable<double> -> System.Data.Spatial.DbGeometry
Public Shared Function Reduce (geometryValue As DbGeometry, tolerance As Nullable(Of Double)) As DbGeometry

Parameters

geometryValue
DbGeometry

The geometry value.

tolerance
Nullable<Double>

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

Returns

Returns DbGeometry.

Attributes

Applies to