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.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() ![]() | 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. |
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.