Class PrecisionModel

PrecisionModel class

PrecisionModel specifies a number of significant digits in a coordinate.

public abstract class PrecisionModel : IEquatable<PrecisionModel>

Properties

NameDescription
static Exact { get; }Returns an exact precision model. According to exact precision model all digits in a double value are significant.
IsExact { get; }Gets a value indicating whether this precision model is exact.
IsRounding { get; }Gets a value indicating whether this precision model is rounding.
abstract SignificantDigits { get; }Gets a number of significant digits in a precision model if it is rounding.

Methods

NameDescription
static Rounding(int)Returns a rounding precision model. According to rounding precision model only a limited number of digits are significant.
override Equals(object)Indicates whether the current object is equal to another object of the same type.
Equals(PrecisionModel)Indicates whether the current object is equal to another object of the same type.
override GetHashCode()Serves as the default hash function.
operator ==Implements the operator ==.
operator !=Implements the operator !=.

Remarks

There are two types of PrecisionModel: Exact PrecisionModel (all digits are significant);Rounded PrecisionModel (some number of digits are significant). A PrecisionModel can be set to VectorLayer via DriverOptions in order to round coordinates when writing or reading geometries.

See Also