Class NodingFunctions
java.lang.Object
org.locationtech.jtstest.function.NodingFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ListcreateSegmentStrings(Geometry geom) static GeometryfindNodePoints(Geometry geom) static GeometryfindSingleNodePoint(Geometry geom) static intstatic booleanisNodingValid(Geometry geom) static GeometryMCIndexNoding(Geometry geom) static GeometryMCIndexNodingWithPrecision(Geometry geom, double scaleFactor) static GeometryscaledNoding(Geometry geom, double scaleFactor) Runs a ScaledNoder on input.static GeometrysnapRoundWithPointwisePrecisionReduction(Geometry geom, double scaleFactor) Reduces precision pointwise, then snap-rounds.
-
Constructor Details
-
NodingFunctions
public NodingFunctions()
-
-
Method Details
-
snapRoundWithPointwisePrecisionReduction
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
-
findSingleNodePoint
-
findNodePoints
-
interiorIntersectionCount
-
MCIndexNodingWithPrecision
-
MCIndexNoding
-
scaledNoding
Runs a ScaledNoder on input. Input vertices should be rounded to precision model.- Parameters:
geom-scaleFactor-- Returns:
- the noded geometry
-
createSegmentStrings
-