Class UnusualLayerTagsCheck

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

    public class UnusualLayerTagsCheck
    extends BaseCheck<java.lang.Long>
    Checks Edge's LayerTag and flags it if the value is unusual. Also see http://wiki.openstreetmap.org/wiki/Key:layer
    See Also:
    Serialized Form
    • Field Detail

      • INVALID_LAYER_INSTRUCTION

        public static final java.lang.String INVALID_LAYER_INSTRUCTION
      • JUNCTION_INSTRUCTION

        public static final java.lang.String JUNCTION_INSTRUCTION
        See Also:
        Constant Field Values
      • BRIDGE_INSTRUCTION

        public static final java.lang.String BRIDGE_INSTRUCTION
      • TUNNEL_INSTRUCTION

        public static final java.lang.String TUNNEL_INSTRUCTION
      • FALLBACK_INSTRUCTIONS

        public static final java.util.List<java.lang.String> FALLBACK_INSTRUCTIONS
    • Constructor Detail

      • UnusualLayerTagsCheck

        public UnusualLayerTagsCheck​(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
        Configuration required to construct any Check
        Parameters:
        configuration - Configuration
    • Method Detail

      • validCheckForObject

        public boolean validCheckForObject​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Validate if given AtlasObject is actually an Edge and make sure the edge has one of the following tags: tunnel, bridge, layer
        Parameters:
        object - The AtlasObject you are checking
        Returns:
        true if it is
      • flag

        protected java.util.Optional<CheckFlag> flag​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Flag an Edge if it's LayerTag value is unusual
        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.