Class AtlasChecksLogDiffSubCommand

  • All Implemented Interfaces:
    org.openstreetmap.atlas.utilities.runtime.FlexibleSubCommand

    public class AtlasChecksLogDiffSubCommand
    extends JSONFlagDiffSubCommand
    Takes 2 sets of atlas-checks log files and reports the number of additions, subtractions, and changed flags from reference to input. Optionally, the reported items can be written to new log files. Additions and subtractions are based on flag ids. Changes are calculated by differences in the Atlas ids of objects in a flag.
    • Constructor Detail

      • AtlasChecksLogDiffSubCommand

        public AtlasChecksLogDiffSubCommand()
    • Method Detail

      • mapFeatures

        protected java.util.Map<java.lang.String,​java.util.Map<java.util.Set<java.lang.String>,​com.google.gson.JsonObject>> mapFeatures​(org.openstreetmap.atlas.streaming.resource.File file)
        Description copied from class: JSONFlagDiffSubCommand
        Parses an atlas-checks flag file and maps each flag to its id.
        Specified by:
        mapFeatures in class JSONFlagDiffSubCommand
        Parameters:
        file - File containing the flags
        Returns:
        a 2d HashMap containing a HashMap of JsonObjects mapped to String feature ids, mapped to String check names.