Class PbfVerifier


  • public class PbfVerifier
    extends org.openstreetmap.atlas.utilities.runtime.Command
    Command that verifies all expected PBF files exist and can be converted to atlas.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.openstreetmap.atlas.utilities.runtime.Command

        org.openstreetmap.atlas.utilities.runtime.Command.Flag, org.openstreetmap.atlas.utilities.runtime.Command.Optionality, org.openstreetmap.atlas.utilities.runtime.Command.Switch<T extends java.lang.Object>, org.openstreetmap.atlas.utilities.runtime.Command.SwitchList
    • Constructor Summary

      Constructors 
      Constructor Description
      PbfVerifier()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int buildAllPbfs​(java.util.List<org.openstreetmap.atlas.streaming.resource.Resource> pbfFiles)  
      int checkForMissingPbfs​(java.util.HashMap<java.lang.String,​org.openstreetmap.atlas.geography.Rectangle> shardToBounds, java.util.List<org.openstreetmap.atlas.streaming.resource.Resource> pbfFiles, int expectedPbfCount)  
      static org.openstreetmap.atlas.geography.MultiPolygon forPolygon​(org.openstreetmap.atlas.geography.Polygon polygon)  
      static void main​(java.lang.String[] args)  
      protected int onRun​(org.openstreetmap.atlas.utilities.runtime.CommandMap command)  
      static java.util.HashMap<java.lang.String,​org.openstreetmap.atlas.geography.Rectangle> parseSlippyTileFile​(org.openstreetmap.atlas.streaming.resource.Resource slippyTileFile)  
      protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()  
      • Methods inherited from class org.openstreetmap.atlas.utilities.runtime.Command

        commandSummary, getCommandMap, lastRawCommand, run, runWithoutQuitting
      • Methods inherited from class java.lang.Object

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

      • PbfVerifier

        public PbfVerifier()
    • Method Detail

      • forPolygon

        public static org.openstreetmap.atlas.geography.MultiPolygon forPolygon​(org.openstreetmap.atlas.geography.Polygon polygon)
      • main

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

        public static java.util.HashMap<java.lang.String,​org.openstreetmap.atlas.geography.Rectangle> parseSlippyTileFile​(org.openstreetmap.atlas.streaming.resource.Resource slippyTileFile)
      • buildAllPbfs

        public int buildAllPbfs​(java.util.List<org.openstreetmap.atlas.streaming.resource.Resource> pbfFiles)
      • checkForMissingPbfs

        public int checkForMissingPbfs​(java.util.HashMap<java.lang.String,​org.openstreetmap.atlas.geography.Rectangle> shardToBounds,
                                       java.util.List<org.openstreetmap.atlas.streaming.resource.Resource> pbfFiles,
                                       int expectedPbfCount)
      • onRun

        protected int onRun​(org.openstreetmap.atlas.utilities.runtime.CommandMap command)
        Specified by:
        onRun in class org.openstreetmap.atlas.utilities.runtime.Command
      • switches

        protected org.openstreetmap.atlas.utilities.runtime.Command.SwitchList switches()
        Specified by:
        switches in class org.openstreetmap.atlas.utilities.runtime.Command