pbf

package
v0.0.0-...-85720d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package pbf provides functions for parsing 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

func Blocks

func Blocks(filename string) chan Block

func NewParser

func NewParser(pbf *Pbf, coords chan []element.Node, nodes chan []element.Node, ways chan []element.Way, relations chan []element.Relation) *parser

Types

type Block

type Block struct {
	// contains filtered or unexported fields
}

func (*Block) Parse

func (pos *Block) Parse(coords chan []element.Node, nodes chan []element.Node, ways chan []element.Way, relations chan []element.Relation)

type Pbf

type Pbf struct {
	Filename string

	Header *pbfHeader
	// contains filtered or unexported fields
}

func Open

func Open(filename string) (f *Pbf, err error)

func (*Pbf) BlockPositions

func (pbf *Pbf) BlockPositions() (positions chan Block)

func (*Pbf) Close

func (pbf *Pbf) Close() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL