Categorygithub.com/jneo8/osmpbfparser-go
modulepackage
1.2.0
Repository: https://github.com/jneo8/osmpbfparser-go.git
Documentation: pkg.go.dev

# README

OSM PBF Parser

  • Parse pbf file to osm element(Node, Way and Relation)

  • Iterator pattern. Easy to get.

  • Progress bar for parsing process.

  • Control memory usage by using levelDB.

  • Convert Element to GeoJSON

    • Support type: Node, Way, Relation(polygon, multipolygon)

Install

go get -u https://github.com/jneo8/osmpbfparser-go

Quick start

# This will run the example code in ./cmd/example/main.go
make run-example

# Packages

No description provided by the author
No description provided by the author

# Functions

BytesToElement convert bytes to Element struct.
New return new PBFParser.

# Structs

Args is inpute arguments struct.
Element is an osm data element group set.
PBFCounter count the number of each type data element and return the number.
PBFIndexer parser pbffile and mark if this element is needed, save to PBFMasks.
PBFRelationMemberIndexer same as PBFIndexer but run after PBFIndxeer.
Report recor the information duration the runtime.

# Interfaces

PBFParser is a item parse pbf file, iterator return.