SqlSpatialFunctions.Reduce Method

Definition

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.

[System.Data.Entity.DbFunction("SqlServer", "REDUCE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="tolerance")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="geographyValue")]
public static System.Data.Entity.Spatial.DbGeography Reduce (System.Data.Entity.Spatial.DbGeography geographyValue, Nullable<double> tolerance);
static member Reduce : System.Data.Entity.Spatial.DbGeography * Nullable<double> -> System.Data.Entity.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.

[System.Data.Entity.DbFunction("SqlServer", "REDUCE")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="tolerance")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="geometryValue")]
public static System.Data.Entity.Spatial.DbGeometry Reduce (System.Data.Entity.Spatial.DbGeometry geometryValue, Nullable<double> tolerance);
static member Reduce : System.Data.Entity.Spatial.DbGeometry * Nullable<double> -> System.Data.Entity.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