Versions in this module Expand all Collapse all v1 v1.2.0 Dec 31, 2020 Changes in this version type Element + func (e *Element) GetName() (string, error) v1.1.0 Dec 31, 2020 Changes in this version type Element + func (e *Element) GetTags() map[string]string v1.0.1 Nov 27, 2020 Changes in this version + type Args struct + BatchSize int + LevelDBPath string + PBFFile string + type Element struct + Elements []Element + Node gosmparse.Node + Relation gosmparse.Relation + Role int + Type int + Way gosmparse.Way + func BytesToElement(b []byte) (Element, error) + func (e *Element) GetID() int64 + func (e *Element) GetRelationAsGeometries() *geojson.Feature + func (e *Element) GetRelationAsMultipolygon() *geojson.Feature + func (e *Element) IsArea() bool + func (e *Element) IsMultiPolygon() bool + func (e *Element) NodeToFeature() *geojson.Feature + func (e *Element) RelationToFeature() *geojson.Feature + func (e *Element) ToBytes() ([]byte, error) + func (e *Element) ToGeoJSON() ([]byte, error) + func (e *Element) ToGeoJSONFeature() *geojson.Feature + func (e *Element) WayToFeature() *geojson.Feature + type PBFCounter struct + NodeCount int + PBFFile string + RelationCount int + WayCount int + func (p *PBFCounter) ReadNode(node gosmparse.Node) + func (p *PBFCounter) ReadRelation(relation gosmparse.Relation) + func (p *PBFCounter) ReadWay(way gosmparse.Way) + func (p *PBFCounter) Run() (int, int, int, error) + type PBFIndexer struct + NodeBar *mpb.Bar + PBFFile string + PBFMasks *bitmask.PBFMasks + RelationBar *mpb.Bar + WayBar *mpb.Bar + func (p *PBFIndexer) ReadNode(node gosmparse.Node) + func (p *PBFIndexer) ReadRelation(relation gosmparse.Relation) + func (p *PBFIndexer) ReadWay(way gosmparse.Way) + func (p *PBFIndexer) Run() error + type PBFParser interface + Close func() error + Err func() error + Iterator func() <-chan Element + SetLogger func(*log.Logger) + func New(args Args) PBFParser + type PBFRelationMemberIndexer struct + NodeBar *mpb.Bar + PBFFile string + PBFMasks *bitmask.PBFMasks + RelationBar *mpb.Bar + WayBar *mpb.Bar + func (p *PBFRelationMemberIndexer) ReadNode(node gosmparse.Node) + func (p *PBFRelationMemberIndexer) ReadRelation(relation gosmparse.Relation) + func (p *PBFRelationMemberIndexer) ReadWay(way gosmparse.Way) + func (p *PBFRelationMemberIndexer) Run() error + type Report struct + FatalRelation int + FatalWay int + Fizesize int64 + PBFFile string + ProcessedNode int + ProcessedRelation int + ProcessedWay int + SpendTime time.Duration + func (r *Report) GetReport() string