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
    • 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
      • createFlag

        protected CheckFlag createFlag​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object,
                                       java.lang.String instruction)
        A function that collected all Edges for an Edge object and flags it as a Way.
        Overrides:
        createFlag in class BaseCheck<java.lang.Long>
        Parameters:
        object -
        instruction -
        Returns:
      • 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>