Class CoordinatePrecisionReducerFilter
- Namespace
- NetTopologySuite.Precision
- Assembly
- NetTopologySuite.dll
Reduces the precision of the Coordinates in a CoordinateSequence to match the supplied PrecisionModel.
public class CoordinatePrecisionReducerFilter : ICoordinateSequenceFilter
- Inheritance
-
CoordinatePrecisionReducerFilter
- Implements
- Inherited Members
Remarks
Uses MakePrecise(double). The input is modified in-place, so it should be cloned beforehand if the original should not be modified.
Constructors
CoordinatePrecisionReducerFilter(PrecisionModel)
Creates a new precision reducer filter.
public CoordinatePrecisionReducerFilter(PrecisionModel precModel)
Parameters
precModel
PrecisionModelThe PrecisionModel to use
Properties
Done
Always runs over all geometry components.
public bool Done { get; }
Property Value
GeometryChanged
Always reports that the geometry has changed
public bool GeometryChanged { get; }
Property Value
Methods
Filter(CoordinateSequence, int)
Rounds the Coordinates in the sequence to match the PrecisionModel
public void Filter(CoordinateSequence seq, int i)
Parameters
seq
CoordinateSequencei
int