diff

package
v0.0.0-...-e2e308c Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 19 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 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,
) *Deleter

func (*Deleter) Delete

func (d *Deleter) Delete(delElem parser.DiffElem) 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 parser provides a parser for OSM diff files in XML format.
Package parser provides a parser for OSM diff files in XML format.
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