Class BinaryParser

    • Field Detail

      • granularity

        protected int granularity
      • date_granularity

        protected int date_granularity
      • NODATE

        public static final Date NODATE
    • Constructor Detail

      • BinaryParser

        public BinaryParser()
    • Method Detail

      • getDate

        protected Date getDate(Osmformat.Info info)
        Take a Info protocol buffer containing a date and convert it into a java Date object
      • getStringById

        protected String getStringById(int id)
        Get a string based on the index used. Index 0 is reserved to use as a delimiter, therefore, index 1 corresponds to the first string in the table
        Parameters:
        id -
        Returns:
      • skipBlock

        public boolean skipBlock(FileBlockPosition block)
        Description copied from interface: BlockReaderAdapter
        Does the reader understand this block? Does it want the data in it? A reference contains the metadata about a block and can saved --- or stored ---- for future random access. However, during a strea read of the file, does the user want this block? handleBlock will be called on all blocks that are not skipped, in file order.
      • parseLat

        public double parseLat(long degree)
        Convert a latitude value stored in a protobuf into a double, compensating for granularity and latitude offset
      • parseLon

        public double parseLon(long degree)
        Convert a longitude value stored in a protobuf into a double, compensating for granularity and longitude offset