OSM PBF parser.
| Parameters: |
|
|---|
Parse primitive block from filename.
| Parameters: |
|
|---|
OSM PBF file reader.
Parses the low-level file structure with header sizes, offsets and blob headers.
| Parameters: | filename – path to the PBF file |
|---|
Returns an iterator of the blob offsets in this file.
Each offsets is stored in a dictionary with:
Returns an iterator of PrimitiveBlockParser.
Returns the unzipped blob data from.
Low level PBF primitive block parser.
Parses a single primitive block and handles OSM PBF internals like dense nodes, delta encoding, stringtables, etc.
| Parameters: |
|
|---|
Return an iterator for all nodes in this primitive block.
| Return type: | iterator of (osm_id, tags, (lon, lat)) tuples |
|---|
Return an iterator for all relations in this primitive block.
| Return type: | iterator of (osm_id, tags, [(ref1, type, role), ...]) tuples |
|---|
Return an iterator for all ways in this primitive block.
| Return type: | iterator of (osm_id, tags, [ref1, ref2, ...]) tuples |
|---|