rename update/parser package to update/diff
parent
909bd5fdec
commit
f8d128f966
|
@ -6,7 +6,7 @@ import (
|
||||||
"github.com/omniscale/imposm3/element"
|
"github.com/omniscale/imposm3/element"
|
||||||
"github.com/omniscale/imposm3/expire"
|
"github.com/omniscale/imposm3/expire"
|
||||||
"github.com/omniscale/imposm3/mapping"
|
"github.com/omniscale/imposm3/mapping"
|
||||||
"github.com/omniscale/imposm3/update/parser"
|
"github.com/omniscale/imposm3/update/diff"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Deleter struct {
|
type Deleter struct {
|
||||||
|
@ -213,7 +213,7 @@ func (d *Deleter) deleteNode(id int64) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Deleter) Delete(delElem parser.DiffElem) error {
|
func (d *Deleter) Delete(delElem diff.DiffElem) error {
|
||||||
if delElem.Rel != nil {
|
if delElem.Rel != nil {
|
||||||
if err := d.deleteRelation(delElem.Rel.Id, true, true); err != nil {
|
if err := d.deleteRelation(delElem.Rel.Id, true, true); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
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 parser
|
package diff
|
|
@ -1,4 +1,4 @@
|
||||||
package parser
|
package diff
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"compress/gzip"
|
"compress/gzip"
|
|
@ -17,7 +17,7 @@ import (
|
||||||
"github.com/omniscale/imposm3/logging"
|
"github.com/omniscale/imposm3/logging"
|
||||||
"github.com/omniscale/imposm3/mapping"
|
"github.com/omniscale/imposm3/mapping"
|
||||||
"github.com/omniscale/imposm3/stats"
|
"github.com/omniscale/imposm3/stats"
|
||||||
"github.com/omniscale/imposm3/update/parser"
|
"github.com/omniscale/imposm3/update/diff"
|
||||||
diffstate "github.com/omniscale/imposm3/update/state"
|
diffstate "github.com/omniscale/imposm3/update/state"
|
||||||
"github.com/omniscale/imposm3/writer"
|
"github.com/omniscale/imposm3/writer"
|
||||||
)
|
)
|
||||||
|
@ -100,7 +100,7 @@ func Update(oscFile string, geometryLimiter *limit.Limiter, expireor expire.Expi
|
||||||
|
|
||||||
defer log.StopStep(log.StartStep(fmt.Sprintf("Processing %s", oscFile)))
|
defer log.StopStep(log.StartStep(fmt.Sprintf("Processing %s", oscFile)))
|
||||||
|
|
||||||
elems, errc := parser.Parse(oscFile)
|
elems, errc := diff.Parse(oscFile)
|
||||||
|
|
||||||
tagmapping, err := mapping.NewMapping(config.BaseOptions.MappingFile)
|
tagmapping, err := mapping.NewMapping(config.BaseOptions.MappingFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue