com.vividsolutions.jts.noding
Class ScaledNoder
java.lang.Objectcom.vividsolutions.jts.noding.ScaledNoder
- Noder
public class ScaledNoder
extends java.lang.Object
Wraps a
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.
ScaledNoder
public ScaledNoder(Noder noder,
double scaleFactor)
ScaledNoder
public ScaledNoder(Noder noder,
double scaleFactor,
double offsetX,
double offsetY)
computeNodes
public void computeNodes(Collection inputSegStrings)
Computes the noding for a collection of
SegmentStrings.
Some Noders may add all these nodes to the input SegmentStrings;
others may only add some or none at all.
- computeNodes in interface Noder
getNodedSubstrings
public Collection getNodedSubstrings()
Returns a Collection of fully noded SegmentStrings.
The SegmentStrings have the same context as their parent.
- getNodedSubstrings in interface Noder
- a Collection of SegmentStrings
isIntegerPrecision
public boolean isIntegerPrecision()