Documentation ¶
Overview ¶
Package pbf provides a parser for OSM PBF files.
The subpackage osmpbf contains the generated code for the OSM .proto files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) RegisterFirstRelationCallback ¶
func (p *Parser) RegisterFirstRelationCallback(cb func())
RegisterFirstRelationCallback registers a callback that gets called when the the first relation is parsed. The callback should block until it is safe to send relations to the relation channel. This only works when the PBF file is ordered by type (nodes before ways before relations).
func (*Parser) RegisterFirstWayCallback ¶
func (p *Parser) RegisterFirstWayCallback(cb func())
RegisterFirstWayCallback registers a callback that gets called when the the first way is parsed. The callback should block until it is safe to send ways to the way channel. This only works when the PBF file is ordered by type (nodes before ways before relations).