Class InconsistentRoadClassificationCheck

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

    public class InconsistentRoadClassificationCheck
    extends BaseCheck<java.lang.Long>
    This identifies roads, that transition from one classification to another and then back to the original classification. The check goes through each edge and finds edges that follow itself with a different highway tag. If a such an edge with different tag is found, the outgoing connections of that second edge is checked. If an edge with similar type is found in a similar direction, we say there is an inconsistency. This check will skip roundabouts by default. Roundabouts take the type of highest priority way connected. However, if a roundabout is not properly tagged (missing junction=roundabout), then it will probably be flagged by this check. The solution is to add junction=roundabout tag and set the highway tag to the highest priority highway tag connecting to junction. Links need to be tagged similar to roundabouts. By default a link way will not be used as reference way. However, link ways could still cause inconsistencies.
    See Also:
    Serialized Form
    • Constructor Detail

      • InconsistentRoadClassificationCheck

        public InconsistentRoadClassificationCheck​(org.openstreetmap.atlas.utilities.configuration.Configuration configuration)
    • Method Detail

      • validCheckForObject

        public boolean validCheckForObject​(org.openstreetmap.atlas.geography.atlas.items.AtlasObject object)
        Description copied from interface: Check
        Checks to see whether the supplied object class type is valid for this particular check
        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 item)
        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.