Table of Contents

Class ScaledNoder

Namespace
NetTopologySuite.Noding
Assembly
NetTopologySuite.dll

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.

public class ScaledNoder : INoder
Inheritance
ScaledNoder
Implements
Inherited Members

Constructors

ScaledNoder(INoder, double)

Initializes a new instance of the ScaledNoder class.

public ScaledNoder(INoder noder, double scaleFactor)

Parameters

noder INoder

The noder to use

scaleFactor double

The scale factor to use

Properties

IsIntegerPrecision

public bool IsIntegerPrecision { get; }

Property Value

bool

Methods

ComputeNodes(IList<ISegmentString>)

public void ComputeNodes(IList<ISegmentString> inputSegStrings)

Parameters

inputSegStrings IList<ISegmentString>

GetNodedSubstrings()

public IList<ISegmentString> GetNodedSubstrings()

Returns

IList<ISegmentString>