Class PbfLoader

  • All Implemented Interfaces:
    java.io.Serializable

    public class PbfLoader
    extends java.lang.Object
    implements java.io.Serializable
    Load a set of Resources pbfs and build a single Atlas from it, following the wanted country border and shard
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PbfLoader​(PbfContext pbfContext, java.util.Map<java.lang.String,​java.lang.String> sparkContext, org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap boundaries, org.openstreetmap.atlas.geography.atlas.pbf.AtlasLoadingOption atlasLoadingOption, java.lang.String codeVersion, java.lang.String dataVersion, java.util.Set<org.openstreetmap.atlas.geography.sharding.Shard> countryShards)
      Construct
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openstreetmap.atlas.geography.atlas.Atlas generateRawAtlas​(java.lang.String countryName, org.openstreetmap.atlas.geography.sharding.Shard shard)  
      static void setAtlasSaveFolder​(org.openstreetmap.atlas.streaming.resource.File atlasSaveFolder)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PbfLoader

        public PbfLoader​(PbfContext pbfContext,
                         java.util.Map<java.lang.String,​java.lang.String> sparkContext,
                         org.openstreetmap.atlas.geography.boundary.CountryBoundaryMap boundaries,
                         org.openstreetmap.atlas.geography.atlas.pbf.AtlasLoadingOption atlasLoadingOption,
                         java.lang.String codeVersion,
                         java.lang.String dataVersion,
                         java.util.Set<org.openstreetmap.atlas.geography.sharding.Shard> countryShards)
        Construct
        Parameters:
        pbfContext - The context explaining where to find the PBFs
        sparkContext - The context from Spark
        boundaries - The CountryBoundaryMap
        atlasLoadingOption - The loading options
        codeVersion - The version of the code used
        dataVersion - The version of the data in the PBFs
        countryShards - Set of Shards for the Atlas meta data
    • Method Detail

      • setAtlasSaveFolder

        public static void setAtlasSaveFolder​(org.openstreetmap.atlas.streaming.resource.File atlasSaveFolder)
      • generateRawAtlas

        public org.openstreetmap.atlas.geography.atlas.Atlas generateRawAtlas​(java.lang.String countryName,
                                                                              org.openstreetmap.atlas.geography.sharding.Shard shard)