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
| Improve this Doc View SourceScaledNoder(INoder, Double)
Initializes a new instance of the ScaledNoder class.
Declaration
public ScaledNoder(INoder noder, double scaleFactor)
Parameters
Type | Name | Description |
---|---|---|
INoder | noder | The noder to use |
Double | scaleFactor | The scale factor to use |
Properties
| Improve this Doc View SourceIsIntegerPrecision
Declaration
public bool IsIntegerPrecision { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceComputeNodes(IList<ISegmentString>)
Declaration
public void ComputeNodes(IList<ISegmentString> inputSegStrings)
Parameters
Type | Name | Description |
---|---|---|
IList<ISegmentString> | inputSegStrings |
GetNodedSubstrings()
Declaration
public IList<ISegmentString> GetNodedSubstrings()
Returns
Type | Description |
---|---|
IList<ISegmentString> |