use of de.topobyte.osm4j.pbf.protobuf.Osmformat.PrimitiveBlock.Builder in project osm4j-pbf by topobyte.
the class EntitySplitBlockwise method copy.
private void copy(BlockWriter blockWriter, List<PrimitiveGroup> gs, Osmformat.PrimitiveBlock primBlock, Compression compression) throws IOException {
Osmformat.PrimitiveBlock.Builder builder = Osmformat.PrimitiveBlock.newBuilder();
for (Osmformat.PrimitiveGroup group : gs) {
builder.addPrimitivegroup(group);
}
copyExtraData(builder, primBlock);
Osmformat.PrimitiveBlock block = builder.build();
blockWriter.write(Constants.BLOCK_TYPE_DATA, null, compression, block.toByteString());
}
use of de.topobyte.osm4j.pbf.protobuf.Osmformat.PrimitiveBlock.Builder in project osm4j-pbf by topobyte.
the class EntitySplit method copy.
private void copy(BlockWriter blockWriter, List<PrimitiveGroup> gs, Osmformat.PrimitiveBlock primBlock, Compression compression) throws IOException {
Osmformat.PrimitiveBlock.Builder builder = Osmformat.PrimitiveBlock.newBuilder();
for (Osmformat.PrimitiveGroup group : gs) {
builder.addPrimitivegroup(group);
}
copyExtraData(builder, primBlock);
Osmformat.PrimitiveBlock block = builder.build();
blockWriter.write(Constants.BLOCK_TYPE_DATA, null, compression, block.toByteString());
}
Aggregations