Class SelfIntersectingPolylineCheck

  • All Implemented Interfaces:
    java.io.Serializable, Check

    public class SelfIntersectingPolylineCheck
    extends BaseCheck<java.lang.Long>
    BaseCheck that identifies self-intersecting PolyLines within Areas, Edges and Lines. Both shape point and non-shape point intersections are flagged.
    See Also:
    Serialized Form
    • Field Detail

      • THREE

        public static final java.lang.Integer THREE
    • Constructor Detail

      • SelfIntersectingPolylineCheck

        public SelfIntersectingPolylineCheck​(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
        Default constructor
        Parameters:
        configuration - the JSON configuration for this check
    • Method Detail

      • validCheckForObject

        public boolean validCheckForObject​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Checks to see whether the atlas object has the prerequisites to be evaluated. It uses a function BaseCheck.isFlagged(Object) that looks through a list of elements that have been flagged by the check algorithm, and if the check has already looked at a specific feature it can skip it here. This is useful if you are walking the graph in your check algorithm and then can flag each feature that you visit while walking the graph.
        Parameters:
        object - the AtlasObject you are checking
        Returns:
        true if object should be checked
      • flag

        protected java.util.Optional<CheckFlag> flag​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Specified by:
        flag in class BaseCheck<java.lang.Long>
      • getFallbackInstructions

        protected java.util.List<java.lang.String> getFallbackInstructions()
        Description copied from class: BaseCheck
        Method to implement for inheriting checks to return the default set of instruction formats that will be the last resort in BaseCheck.getLocalizedInstruction(int, Object[])
        Overrides:
        getFallbackInstructions in class BaseCheck<java.lang.Long>
        Returns:
        The set of instructions to fall back to if configuration results in none.