Class BinarySerializer

  • Direct Known Subclasses:
    PbfSerializer


    public class BinarySerializer
    extends Object
    Generic serializer common code Serialize a set of blobs and process them. Subclasses implement handlers for different API's (osmosis, mkgmap, splitter, etc.) All data is converted into PrimGroupWriterInterface objects, which are then ordered to process their data at the appropriate time.
    • Method Detail

      • configGranularity

        public void configGranularity(int granularity)
        Set the granularity (precision of lat/lon, measured in unites of nanodegrees.
      • configBatchLimit

        public void configBatchLimit(int batch_limit)
        Configure the maximum number of entities in a batch
      • processBatch

        public void processBatch()
      • mapRawDegrees

        public long mapRawDegrees(double degrees)
        Convert from a degrees represented as a double into the serialized offset in nanodegrees..
      • mapDegrees

        public int mapDegrees(double degrees)
        Convert from a degrees represented as a double into the serialized offset.