Class ScaledNoder
Wraps a INoder and transforms its input into the integer domain. This is intended for use with Snap-Rounding noders, which typically are only intended to work in the integer domain.
Clients should be aware that rescaling can involve loss of precision, which can cause zero-length line segments to be created. These in turn can cause problems when used to build a planar graph. This situation should be checked for and collapsed segments removed if necessary.
Implements
Inherited Members
Namespace: NetTopologySuite .Noding
Assembly: NetTopologySuite.dll
Syntax
public class ScaledNoder : INoder
Constructors
| Edit this page View SourceScaledNoder(INoder, double)
Initializes a new instance of the Scaled
Declaration
public ScaledNoder(INoder noder, double scaleFactor)
Parameters
Properties
| Edit this page View SourceIsIntegerPrecision
Declaration
public bool IsIntegerPrecision { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceComputeNodes(IList<ISegmentString>)
Declaration
public void ComputeNodes(IList<ISegmentString> inputSegStrings)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegment |
inputSegStrings |
GetNodedSubstrings()
Declaration
public IList<ISegmentString> GetNodedSubstrings()
Returns
Type | Description |
---|---|
IList<ISegment |