Class AtlasGenerator

  • All Implemented Interfaces:
    java.io.Serializable

    public class AtlasGenerator
    extends SparkJob
    Generate Atlas Shards for a specific version and a specific set of countries
    See Also:
    Serialized Form
    • Field Detail

      • LINE_DELIMITED_GEOJSON_STATISTICS_FOLDER

        public static final java.lang.String LINE_DELIMITED_GEOJSON_STATISTICS_FOLDER
        See Also:
        Constant Field Values
    • Constructor Detail

      • AtlasGenerator

        public AtlasGenerator()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • generateTasks

        protected static java.util.List<org.openstreetmap.atlas.generator.AtlasGenerationTask> generateTasks​(java.util.List<java.lang.String> countries,
                                                                                                             org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap boundaryMap,
                                                                                                             org.openstreetmap.atlas.geography.sharding.Sharding sharding)
        Generates a List of AtlasGenerationTasks for given countries using given CountryBoundaryMap and Sharding strategy.
        Parameters:
        countries - Countries to generate tasks for
        boundaryMap - CountryBoundaryMap to read country boundaries
        sharding - Sharding strategy
        Returns:
        List of AtlasGenerationTasks
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class SparkJob
        Returns:
        The name of the job
      • start

        public void start​(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
        Description copied from class: SparkJob
        The spark Job
        Specified by:
        start in class SparkJob
        Parameters:
        command - The arguments passed to the main method
      • outputToClean

        protected java.util.List<java.lang.String> outputToClean​(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
        Description copied from class: SparkJob
        Define all the folders to clean before a run.
        Overrides:
        outputToClean in class SparkJob
        Parameters:
        command - The command parameters sent to the main class.
        Returns:
        All the paths to clean
      • switches

        protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()
        Overrides:
        switches in class SparkJob