public class PbfSerializer extends BinarySerializerimplements OsmOutputStream
BinarySerializer.PrimGroupWriterInterface | Modifier and Type | Field and Description |
|---|---|
protected boolean |
headerWritten
Has the header been written yet?
|
protected boolean |
useDense
Additional configuration flag for whether to serialize into DenseNodes/DenseInfo?
|
protected boolean |
writeMetadata
|
batch_limit, batch_size, date_granularity, granularity, groups, MIN_DENSE, output, total_entities| Constructor and Description |
|---|
PbfSerializer(BlockOutputStream
Construct a serializer that writes to the target BlockOutputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
|
void |
finishHeader(Osmformat
Write the header fields that are always needed.
|
void |
process(OsmBounds
|
void |
process(OsmNode
|
void |
process(OsmRelation
|
void |
process(OsmWay
|
void |
release()
|
void |
setUseDense(boolean useDense)
Change the flag of whether to use the dense format.
|
void |
write(OsmBounds
|
void |
write(OsmNode
|
void |
write(OsmRelation
|
void |
write(OsmWay
|
close, configBatchLimit, configGranularity, flush, getStringTable, mapDegrees, mapRawDegrees, processBatchprotected boolean writeMetadata
protected boolean useDense
protected boolean headerWritten
public PbfSerializer(BlockOutputStreamoutput, boolean writeMetadata)
output - The PBF block stream to send serialized data.
public void setUseDense(boolean useDense)
useDense - The new use dense value.
public void process(OsmBoundsbounds)
public void process(OsmNodenode)
public void process(OsmWayway)
public void process(OsmRelationrelation)
public void complete()
public void release()
public void finishHeader(Osmformat.HeaderBlock .Builder headerblock)
headerblock - Incomplete builder to complete and write.
public void write(OsmBoundsbounds) throws IOException
write in interface
OsmOutputStream
IOException
public void write(OsmNodenode) throws IOException
write in interface
OsmOutputStream
IOException
public void write(OsmWayway) throws IOException
write in interface
OsmOutputStream
IOException
public void write(OsmRelationrelation) throws IOException
write in interface
OsmOutputStream
IOException