Class Osmformat.PrimitiveBlock

    • Method Detail

      • hasStringtable

        public boolean hasStringtable()
        required .OSMPBF.StringTable stringtable = 1;
      • getStringtable

        public Osmformat.StringTable getStringtable()
        required .OSMPBF.StringTable stringtable = 1;
      • getPrimitivegroupCount

        public int getPrimitivegroupCount()
        repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
      • getPrimitivegroup

        public Osmformat.PrimitiveGroup getPrimitivegroup(int index)
        repeated .OSMPBF.PrimitiveGroup primitivegroup = 2;
      • hasGranularity

        public boolean hasGranularity()
        optional int32 granularity = 17 [default = 100];
         Granularity, units of nanodegrees, used to store coordinates in this block
         
      • getGranularity

        public int getGranularity()
        optional int32 granularity = 17 [default = 100];
         Granularity, units of nanodegrees, used to store coordinates in this block
         
      • hasLatOffset

        public boolean hasLatOffset()
        optional int64 lat_offset = 19 [default = 0];
         Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
         
      • getLatOffset

        public long getLatOffset()
        optional int64 lat_offset = 19 [default = 0];
         Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
         
      • hasLonOffset

        public boolean hasLonOffset()
        optional int64 lon_offset = 20 [default = 0];
      • getLonOffset

        public long getLonOffset()
        optional int64 lon_offset = 20 [default = 0];
      • hasDateGranularity

        public boolean hasDateGranularity()
        optional int32 date_granularity = 18 [default = 1000];
         Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
         
      • getDateGranularity

        public int getDateGranularity()
        optional int32 date_granularity = 18 [default = 1000];
         Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
         
      • isInitialized

        public final boolean isInitialized()
      • writeTo

        public void writeTo(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface  com.google.protobuf.MessageLite
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
      • parseFrom

        public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.ByteString data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.PrimitiveBlock parseFrom(com.google.protobuf.ByteString data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.PrimitiveBlock parseFrom(byte[] data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Osmformat.PrimitiveBlock parseFrom(byte[] data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException