ownmapsqldb

package
v0.0.0-...-14f1a14 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: LGPL-2.1 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Importer

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

func NewImporter

func NewImporter(db *sqlx.DB, pbfHeader *osmpbf.Header, toDatasourceConn toDatasourceConnFunc) (*Importer, errorsx.Error)

func (*Importer) Commit

func (importer *Importer) Commit() (ownmapdal.DataSourceConn, errorsx.Error)

func (*Importer) GetNodeByID

func (importer *Importer) GetNodeByID(id int64) (*ownmap.OSMNode, error)

func (*Importer) GetRelationByID

func (importer *Importer) GetRelationByID(id int64) (*ownmap.OSMRelation, error)

func (*Importer) GetWayByID

func (importer *Importer) GetWayByID(id int64) (*ownmap.OSMWay, error)

func (*Importer) ImportNode

func (importer *Importer) ImportNode(obj *ownmap.OSMNode) errorsx.Error

func (*Importer) ImportRelation

func (importer *Importer) ImportRelation(obj *ownmap.OSMRelation) errorsx.Error

func (*Importer) ImportWay

func (importer *Importer) ImportWay(obj *ownmap.OSMWay) errorsx.Error

func (*Importer) Rollback

func (importer *Importer) Rollback() errorsx.Error

type MapmakerSQLDB

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

func NewMapmakerSQLDB

func NewMapmakerSQLDB(db *sqlx.DB, name string) *MapmakerSQLDB

func (*MapmakerSQLDB) DatasetInfo

func (db *MapmakerSQLDB) DatasetInfo() (*ownmap.DatasetInfo, errorsx.Error)

func (*MapmakerSQLDB) Name

func (db *MapmakerSQLDB) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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