Class NodingFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.NodingFunctions
-
public class NodingFunctions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodingFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.util.List
createSegmentStrings(Geometry geom)
static Geometry
findNodePoints(Geometry geom)
static Geometry
findSingleNodePoint(Geometry geom)
static int
interiorIntersectionCount(Geometry geom)
static boolean
isNodingValid(Geometry geom)
static Geometry
MCIndexNoding(Geometry geom)
static Geometry
MCIndexNodingWithPrecision(Geometry geom, double scaleFactor)
static Geometry
scaledNoding(Geometry geom, double scaleFactor)
Runs a ScaledNoder on input.static Geometry
snapRoundWithPointwisePrecisionReduction(Geometry geom, double scaleFactor)
Reduces precision pointwise, then snap-rounds.
-
-
-
Method Detail
-
snapRoundWithPointwisePrecisionReduction
public static Geometry snapRoundWithPointwisePrecisionReduction(Geometry geom, double scaleFactor)
Reduces precision pointwise, then snap-rounds. Note that output set may not contain non-unique linework (and thus cannot be used as input to Polygonizer directly). UnaryUnion is one way to make the linework unique.- Parameters:
geom
- a geometry containing linework to nodescaleFactor
- the precision model scale factor to use- Returns:
- the noded, snap-rounded linework
-
isNodingValid
public static boolean isNodingValid(Geometry geom)
-
interiorIntersectionCount
public static int interiorIntersectionCount(Geometry geom)
-
MCIndexNodingWithPrecision
public static Geometry MCIndexNodingWithPrecision(Geometry geom, double scaleFactor)
-
scaledNoding
public static Geometry scaledNoding(Geometry geom, double scaleFactor)
Runs a ScaledNoder on input. Input vertices should be rounded to precision model.- Parameters:
geom
-scaleFactor
-- Returns:
- the noded geometry
-
createSegmentStrings
private static java.util.List createSegmentStrings(Geometry geom)
-
-