Documentation
¶
Index ¶
- func DeleteTags(elemTags map[string]string, blacklist map[string]bool)
- type BitmaskBoundaries
- type BitmaskCustom
- type BitmaskSuperRelations
- type Cypher
- type DenormalizedJSON
- type JSON
- type LevelDB
- type Nquad
- type Null
- type OPL
- type ReadAll
- type Refs
- type Sqlite3
- type Stats
- type Streets
- type XML
- type Xroads
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitmaskBoundaries ¶
type BitmaskBoundaries struct {
Pass int
Mutex *sync.Mutex
Masks *lib.BitmaskMap
RelationMembers map[int64][]gosmparse.RelationMember
}
BitmaskBoundaries - Load all elements in to memory
func (*BitmaskBoundaries) ReadNode ¶
func (b *BitmaskBoundaries) ReadNode(item gosmparse.Node)
ReadNode - called once per node
func (*BitmaskBoundaries) ReadRelation ¶
func (b *BitmaskBoundaries) ReadRelation(item gosmparse.Relation)
ReadRelation - called once per relation
func (*BitmaskBoundaries) ReadWay ¶
func (b *BitmaskBoundaries) ReadWay(item gosmparse.Way)
ReadWay - called once per way
type BitmaskCustom ¶
type BitmaskCustom struct {
Masks *lib.BitmaskMap
Features *lib.FeatureSet
}
BitmaskCustom - Load all elements in to memory
func (*BitmaskCustom) ReadNode ¶
func (b *BitmaskCustom) ReadNode(item gosmparse.Node)
ReadNode - called once per node
func (*BitmaskCustom) ReadRelation ¶
func (b *BitmaskCustom) ReadRelation(item gosmparse.Relation)
ReadRelation - called once per relation
func (*BitmaskCustom) ReadWay ¶
func (b *BitmaskCustom) ReadWay(item gosmparse.Way)
ReadWay - called once per way
type BitmaskSuperRelations ¶
type BitmaskSuperRelations struct {
Masks *lib.BitmaskMap
}
BitmaskSuperRelations - Load all elements in to memory
func (*BitmaskSuperRelations) ReadNode ¶
func (b *BitmaskSuperRelations) ReadNode(item gosmparse.Node)
ReadNode - called once per node
func (*BitmaskSuperRelations) ReadRelation ¶
func (b *BitmaskSuperRelations) ReadRelation(item gosmparse.Relation)
ReadRelation - called once per relation
func (*BitmaskSuperRelations) ReadWay ¶
func (b *BitmaskSuperRelations) ReadWay(item gosmparse.Way)
ReadWay - called once per way
type Cypher ¶
Cypher - Cypher
func (*Cypher) ReadRelation ¶
ReadRelation - called once per relation
type DenormalizedJSON ¶
type DenormalizedJSON struct {
Writer *lib.BufferedWriter
Conn *leveldb.Connection
ComputeCentroid bool
ComputeGeohash bool
ExportLatLons bool
}
DenormalizedJSON - JSON
func (*DenormalizedJSON) ReadNode ¶
func (d *DenormalizedJSON) ReadNode(item gosmparse.Node)
ReadNode - called once per node
func (*DenormalizedJSON) ReadRelation ¶
func (d *DenormalizedJSON) ReadRelation(item gosmparse.Relation)
ReadRelation - called once per relation
func (*DenormalizedJSON) ReadWay ¶
func (d *DenormalizedJSON) ReadWay(item gosmparse.Way)
ReadWay - called once per way
type JSON ¶
type JSON struct {
Writer *lib.BufferedWriter
}
JSON - JSON
func (*JSON) ReadRelation ¶
ReadRelation - called once per relation
type LevelDB ¶
type LevelDB struct {
Conn *leveldb.Connection
}
LevelDB - LevelDB
func (*LevelDB) ReadRelation ¶
ReadRelation - called once per relation
type Nquad ¶
Nquad - Nquad
func (*Nquad) ReadRelation ¶
ReadRelation - called once per relation
type Null ¶
type Null struct{}
Null - Null
func (*Null) ReadRelation ¶
ReadRelation - called once per relation
type ReadAll ¶
type ReadAll struct {
Mutex *sync.Mutex
DropTags bool
Nodes map[int64]gosmparse.Node
Ways map[int64]gosmparse.Way
Relations map[int64]gosmparse.Relation
}
ReadAll - Load all elements in to memory
func (*ReadAll) ReadRelation ¶
ReadRelation - called once per relation
type Refs ¶
Refs - Refs
func (*Refs) ReadRelation ¶
ReadRelation - called once per relation
type Sqlite3 ¶
type Sqlite3 struct {
Conn *sqlite.Connection
}
Sqlite3 - Sqlite3
func (*Sqlite3) ReadRelation ¶
ReadRelation - called once per relation
type Stats ¶
type Stats struct {
Nodes uint64
Ways uint64
Relations uint64
NodesWithName int64
WaysWithName int64
RelationsWithName int64
NodesWithAddress int64
WaysWithAddress int64
RelationsWithAddress int64
NodesWithNoTags int64
WaysWithNoTags int64
RelationsWithNoTags int64
NodesAvgTagCount float64
WaysAvgTagCount float64
RelationsAvgTagCount float64
}
Stats - Stats
func (*Stats) ReadRelation ¶
ReadRelation - called once per relation
type Streets ¶
Streets - Streets
func (*Streets) ReadRelation ¶
ReadRelation - called once per relation
type Xroads ¶
type Xroads struct {
Pass int64
TagWhiteList map[string]bool
WayNodesMask *lib.Bitmask // a mask of all node ids of all matching ways
WayNames map[int64]string
NodeMap map[int64][]int64
Coords map[int64]*gosmparse.Node
Mutex *sync.Mutex
}
Xroads - Xroads
func (*Xroads) ReadRelation ¶
ReadRelation - called once per relation