Class SharpAngles

    • Field Detail

      • maxAngle

        private double maxAngle
        The maximum angle for sharp angles (degrees)
      • maxLength

        private double maxLength
        The length that at least one way segment must be shorter than (meters)
      • ignoreHighways

        private java.util.Collection<java.lang.String> ignoreHighways
        Specific highway types to ignore
      • ignoreRailway

        private java.util.Collection<java.lang.String> ignoreRailway
        Specific railway types to ignore
    • Constructor Detail

      • SharpAngles

        public SharpAngles()
        Construct a new IntersectionIssues object
    • Method Detail

      • startTest

        public void startTest​(ProgressMonitor progressMonitor)
        Description copied from class: Test
        Start the test using a given progress monitor
        Overrides:
        startTest in class Test
        Parameters:
        progressMonitor - the progress monitor
      • shouldBeTestedForSharpAngles

        public boolean shouldBeTestedForSharpAngles​(Way way)
        Check whether a way should be checked for sharp angles
        Parameters:
        way - The way that needs to be checked
        Returns:
        true if the way should be checked.
      • checkWayForSharpAngles

        public void checkWayForSharpAngles​(Way way)
        Check nodes in a way for sharp angles
        Parameters:
        way - A way to check for sharp angles
      • setMaxLength

        public void setMaxLength​(double length)
        Set the maximum length for the shortest segment
        Parameters:
        length - The max length in meters
      • setMaxAngle

        public void setMaxAngle​(double angle)
        Set the maximum angle
        Parameters:
        angle - The maximum angle in degrees.