Class TypeStartFinder


  • public class TypeStartFinder
    extends Object
    • Constructor Detail

      • TypeStartFinder

        public TypeStartFinder()
    • Method Detail

      • getMetaData

        public static OsmPbfMeta getMetaData​(Path pbf)
                                      throws IOException
        Reads in the metadata.
        Parameters:
        pbf - Path to the pbf
        Throws:
        IOException - if pbf could not be read
      • findWay

        public static PbfBlob findWay​(Path pbf)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Seek for first PBF Way Blob.
        Parameters:
        pbf - Path to Pbf
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • findRelation

        public static PbfBlob findRelation​(Path pbf,
                                           long startPos)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Seeks to the first Pbf Relation Blob.
        Parameters:
        pbf - Path to Pbf
        startPos - Offset to begin.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • getType

        public static OSMType getType​(PbfBlob blob)
                               throws com.google.protobuf.InvalidProtocolBufferException
        Checks the of given PbfBlob.
        Parameters:
        blob - Blob.
        Throws:
        com.google.protobuf.InvalidProtocolBufferException