update

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 25 Imported by: 5

Documentation

Overview

Package diff provides the diff sub command for updating with diff files.

Index

Constants

View Source
const LastStateFilename = "last.state.txt"

Variables

This section is empty.

Functions

func Diff

func Diff(baseOpts config.Base, files []string)

func Run

func Run(baseOpts config.Base)

func Update

func Update(
	baseOpts config.Base,
	oscFile string,
	geometryLimiter *limit.Limiter,
	expireor expire.Expireor,
	osmCache *cache.OSMCache,
	diffCache *cache.DiffCache,
	force bool,
) error

Types

type Deleter

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

func NewDeleter

func NewDeleter(db database.Deleter, osmCache *cache.OSMCache, diffCache *cache.DiffCache,
	singleIDSpace bool,
	tmPoints mapping.NodeMatcher,
	tmLineStrings mapping.WayMatcher,
	tmPolygons mapping.RelWayMatcher,
	tmRelation mapping.RelationMatcher,
	tmRelationMember mapping.RelationMatcher,
) *Deleter

func (*Deleter) Delete

func (d *Deleter) Delete(delElem osm.Diff) error

Delete deletes the provided element from all matching tables. Depending elements are also removed (e.g. all ways and relations that are affected by a node).

func (*Deleter) DeletedMemberWays

func (d *Deleter) DeletedMemberWays() map[int64]struct{}

func (*Deleter) RelID added in v0.7.0

func (d *Deleter) RelID(id int64) int64

func (*Deleter) SetExpireor

func (d *Deleter) SetExpireor(exp expire.Expireor)

func (*Deleter) WayID added in v0.7.0

func (d *Deleter) WayID(id int64) int64

Jump to

Keyboard shortcuts

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