Class OsmPbfParser

java.lang.Object
org.openstreetmap.osmosis.osmbinary.BinaryParser
org.oscim.utils.osmpbf.OsmPbfParser
All Implemented Interfaces:
org.openstreetmap.osmosis.osmbinary.file.BlockReaderAdapter

public class OsmPbfParser extends org.openstreetmap.osmosis.osmbinary.BinaryParser
Class that reads and parses binary files and sends the contained entities to the sink.
  • Field Summary

    Fields inherited from class org.openstreetmap.osmosis.osmbinary.BinaryParser

    date_granularity, granularity, NODATE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    void
    parse(org.openstreetmap.osmosis.osmbinary.Osmformat.HeaderBlock block)
     
    protected void
    parseDense(org.openstreetmap.osmosis.osmbinary.Osmformat.DenseNodes nodes)
     
    protected void
    parseNodes(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Node> nodes)
     
    protected void
    parseRelations(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Relation> rels)
     
    protected void
    parseWays(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Way> ways)
     

    Methods inherited from class org.openstreetmap.osmosis.osmbinary.BinaryParser

    getDate, getStringById, handleBlock, parse, parseLat, parseLon, skipBlock

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OsmPbfParser

      public OsmPbfParser()
  • Method Details

    • complete

      public void complete()
    • parseNodes

      protected void parseNodes(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Node> nodes)
      Specified by:
      parseNodes in class org.openstreetmap.osmosis.osmbinary.BinaryParser
    • parseDense

      protected void parseDense(org.openstreetmap.osmosis.osmbinary.Osmformat.DenseNodes nodes)
      Specified by:
      parseDense in class org.openstreetmap.osmosis.osmbinary.BinaryParser
    • parseWays

      protected void parseWays(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Way> ways)
      Specified by:
      parseWays in class org.openstreetmap.osmosis.osmbinary.BinaryParser
    • parseRelations

      protected void parseRelations(List<org.openstreetmap.osmosis.osmbinary.Osmformat.Relation> rels)
      Specified by:
      parseRelations in class org.openstreetmap.osmosis.osmbinary.BinaryParser
    • parse

      public void parse(org.openstreetmap.osmosis.osmbinary.Osmformat.HeaderBlock block)
      Specified by:
      parse in class org.openstreetmap.osmosis.osmbinary.BinaryParser
    • getData

      public OsmData getData()