示例#1
0
 private Grib1IndexProto.Grib1GdsSection makeGdsProto(Grib1SectionGridDefinition gds)
     throws IOException {
   Grib1IndexProto.Grib1GdsSection.Builder b = Grib1IndexProto.Grib1GdsSection.newBuilder();
   b.setGds(ByteString.copyFrom(gds.getRawBytes()));
   return b.build();
 }
示例#2
0
 private Grib1SectionGridDefinition readGds(Grib1IndexProto.Grib1GdsSection proto) {
   ByteString bytes = proto.getGds();
   return new Grib1SectionGridDefinition(bytes.toByteArray());
 }