Class SnapRoundFunctions


  • public class SnapRoundFunctions
    extends java.lang.Object
    • Constructor Detail

      • SnapRoundFunctions

        public SnapRoundFunctions()
    • 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 node
        scaleFactor - the precision model scale factor to use
        Returns:
        the noded, snap-rounded linework