public class PbfParser extends BinaryParser
date_granularity, granularity, NODATE| Constructor and Description |
|---|
PbfParser(OsmHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Called when the file is fully read.
|
double |
degrees(long value)
|
protected void |
parse(Osmformat
Parse a header message.
|
protected void |
parseDense(Osmformat
Parse a DenseNode protocol buffer and send the resulting nodes to a sink.
|
protected void |
parseNodes(List
Parse a list of Node protocol buffers and send the resulting nodes to a sink.
|
protected void |
parseRelations(List
Parse a list of Relation protocol buffers and send the resulting relations to a sink.
|
protected void |
parseWays(List
Parse a list of Way protocol buffers and send the resulting ways to a sink.
|
getDate, getStringById, getTimestamp, handleBlock, parse, parseLat, parseLon, skipBlockpublic PbfParser(OsmHandlerhandler, boolean fetchMetadata)
public void complete()
throws IOException
BlockReaderAdapter
IOException -
protected void parse(Osmformat.HeaderBlock header) throws IOException
BinaryParser
parse in class
BinaryParser
IOException
public double degrees(long value)
protected void parseNodes(List<Osmformat .Node > nodes) throws IOException
BinaryParser
parseNodes in class
BinaryParser
IOException -
protected void parseDense(Osmformat.DenseNodes nodes) throws IOException
BinaryParser
parseDense in class
BinaryParser
IOException
protected void parseWays(List<Osmformat .Way > ways) throws IOException
BinaryParser
parseWays in class
BinaryParser
IOException
protected void parseRelations(List<Osmformat .Relation > rels) throws IOException
BinaryParser
parseRelations in class
BinaryParser
IOException