# 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
# 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.