update

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: 24 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff()

func Run

func Run()

func Update

func Update(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 diff.Element) error

func (*Deleter) DeletedMemberWays

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

func (*Deleter) RelId

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

func (*Deleter) SetExpireor

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

func (*Deleter) WayId

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

Directories

Path Synopsis
Package state provides functions for reading and writing diff status files.
Package state provides functions for reading and writing diff status files.

Jump to

Keyboard shortcuts

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