Class PbfLoader
- java.lang.Object
-
- org.openstreetmap.atlas.generator.PbfLoader
-
- All Implemented Interfaces:
java.io.Serializable
public class PbfLoader extends java.lang.Object implements java.io.SerializableLoad a set ofResources 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.AtlasgenerateRawAtlas(java.lang.String countryName, org.openstreetmap.atlas.geography.sharding.Shard shard)static voidsetAtlasSaveFolder(org.openstreetmap.atlas.streaming.resource.File atlasSaveFolder)
-
-
-
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 PBFssparkContext- The context from Sparkboundaries- TheCountryBoundaryMapatlasLoadingOption- The loading optionscodeVersion- The version of the code useddataVersion- The version of the data in the PBFscountryShards-SetofShards 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)
-
-