Package org.locationtech.jtslab
Class SnapRoundFunctions
- java.lang.Object
-
- org.locationtech.jtslab.SnapRoundFunctions
-
public class SnapRoundFunctions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SnapRoundFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeometrysnapRound(Geometry geomA, Geometry geomB, double scaleFactor)static GeometrysnapRoundLines(Geometry geom, double scaleFactor)Reduces precision pointwise, then snap-rounds.
-
-
-
Method Detail
-
snapRoundLines
public static Geometry snapRoundLines(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
-
-