writer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package writer orchestrates the writing part of the import process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorLevel

type ErrorLevel interface {
	Level() int
}

type NodeWriter

type NodeWriter struct {
	OsmElemWriter
	// contains filtered or unexported fields
}

type OsmElemWriter

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

func NewNodeWriter

func NewNodeWriter(
	osmCache *cache.OSMCache,
	nodes chan *element.Node,
	inserter database.Inserter,
	progress *stats.Statistics,
	matcher mapping.NodeMatcher,
	srid int,
) *OsmElemWriter

func NewRelationWriter

func NewRelationWriter(
	osmCache *cache.OSMCache,
	diffCache *cache.DiffCache,
	singleIdSpace bool,
	rel chan *element.Relation,
	inserter database.Inserter,
	progress *stats.Statistics,
	matcher mapping.RelWayMatcher,
	relMatcher mapping.RelationMatcher,
	relMemberMatcher mapping.RelationMatcher,
	srid int,
) *OsmElemWriter

func NewWayWriter

func NewWayWriter(
	osmCache *cache.OSMCache,
	diffCache *cache.DiffCache,
	singleIdSpace bool,
	ways chan *element.Way,
	inserter database.Inserter,
	progress *stats.Statistics,
	polygonMatcher mapping.WayMatcher,
	lineMatcher mapping.WayMatcher,
	srid int,
) *OsmElemWriter

func (*OsmElemWriter) EnableConcurrent

func (writer *OsmElemWriter) EnableConcurrent()

func (*OsmElemWriter) NodeToSrid

func (writer *OsmElemWriter) NodeToSrid(node *element.Node)

func (*OsmElemWriter) NodesToSrid

func (writer *OsmElemWriter) NodesToSrid(nodes []element.Node)

func (*OsmElemWriter) SetExpireor

func (writer *OsmElemWriter) SetExpireor(exp expire.Expireor)

func (*OsmElemWriter) SetLimiter

func (writer *OsmElemWriter) SetLimiter(limiter *limit.Limiter)

func (*OsmElemWriter) Start

func (writer *OsmElemWriter) Start()

func (*OsmElemWriter) Wait

func (writer *OsmElemWriter) Wait()

type RelationWriter

type RelationWriter struct {
	OsmElemWriter
	// contains filtered or unexported fields
}

type WayWriter

type WayWriter struct {
	OsmElemWriter
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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