com.vividsolutions.jts.noding
public class ScaledNoder extends java.lang.Object implements Noder
Noder 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.
Offsets can be provided to increase the number of digits of available precision.| Constructor and Description |
|---|
ScaledNoder(Noder noder,
double scaleFactor) |
ScaledNoder(Noder noder,
double scaleFactor,
double offsetX,
double offsetY) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeNodes(java.util.Collection inputSegStrings)
Computes the noding for a collection of
SegmentStrings. |
java.util.Collection |
getNodedSubstrings()
Returns a
Collection of fully noded SegmentStrings. |
boolean |
isIntegerPrecision() |
public ScaledNoder(Noder noder, double scaleFactor)
public ScaledNoder(Noder noder, double scaleFactor, double offsetX, double offsetY)
public boolean isIntegerPrecision()
public java.util.Collection getNodedSubstrings()
NoderCollection of fully noded SegmentStrings.
The SegmentStrings have the same context as their parent.getNodedSubstrings in interface Noderpublic void computeNodes(java.util.Collection inputSegStrings)
NoderSegmentStrings.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.computeNodes in interface NoderinputSegStrings - a collection of SegmentStrings to node