Class PbfLocator


  • public class PbfLocator
    extends java.lang.Object
    Locate the right PBF Resources from a store
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PbfLocator.LocatedPbf  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_SCHEME  
    • Constructor Summary

      Constructors 
      Constructor Description
      PbfLocator​(PbfContext pbfContext, java.util.Map<java.lang.String,​java.lang.String> spark)
      Construct
    • Field Detail

      • DEFAULT_SCHEME

        public static final java.lang.String DEFAULT_SCHEME
    • Constructor Detail

      • PbfLocator

        public PbfLocator​(PbfContext pbfContext,
                          java.util.Map<java.lang.String,​java.lang.String> spark)
        Construct
        Parameters:
        pbfContext - The pbf context
        spark - The spark context that will help connect to the data source
    • Method Detail

      • pbfsCovering

        public java.lang.Iterable<PbfLocator.LocatedPbf> pbfsCovering​(org.openstreetmap.atlas.geography.MultiPolygon multiPolygon)
        Parameters:
        multiPolygon - The MultiPolygon parameter
        Returns:
        All the PBF resources covering the provided MultiPolygon
      • pbfsCovering

        public java.lang.Iterable<PbfLocator.LocatedPbf> pbfsCovering​(org.openstreetmap.atlas.geography.Polygon polygon)
        Parameters:
        polygon - The Polygon parameter
        Returns:
        All the PBF resources covering the provided Polygon