Documentation ¶
Index ¶
- type Importer
- func (importer *Importer) Commit() (ownmapdal.DataSourceConn, errorsx.Error)
- func (importer *Importer) GetNodeByID(id int64) (*ownmap.OSMNode, error)
- func (importer *Importer) GetRelationByID(id int64) (*ownmap.OSMRelation, error)
- func (importer *Importer) GetWayByID(id int64) (*ownmap.OSMWay, error)
- func (importer *Importer) ImportNode(obj *ownmap.OSMNode) errorsx.Error
- func (importer *Importer) ImportRelation(obj *ownmap.OSMRelation) errorsx.Error
- func (importer *Importer) ImportWay(obj *ownmap.OSMWay) errorsx.Error
- func (importer *Importer) Rollback() errorsx.Error
- type MapmakerSQLDB
- func (db *MapmakerSQLDB) DatasetInfo() (*ownmap.DatasetInfo, errorsx.Error)
- func (db *MapmakerSQLDB) GetInBounds(ctx context.Context, bounds osm.Bounds, filter *ownmapdal.GetInBoundsFilter) (ownmapdal.TagNodeMap, ownmapdal.TagWayMap, ownmapdal.TagRelationMap, ...)
- func (db *MapmakerSQLDB) Name() string
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 (*Importer) Commit ¶
func (importer *Importer) Commit() (ownmapdal.DataSourceConn, errorsx.Error)
func (*Importer) GetNodeByID ¶
func (*Importer) GetRelationByID ¶
func (importer *Importer) GetRelationByID(id int64) (*ownmap.OSMRelation, error)
func (*Importer) GetWayByID ¶
func (*Importer) ImportNode ¶
func (*Importer) ImportRelation ¶
func (importer *Importer) ImportRelation(obj *ownmap.OSMRelation) 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) GetInBounds ¶
func (db *MapmakerSQLDB) GetInBounds(ctx context.Context, bounds osm.Bounds, filter *ownmapdal.GetInBoundsFilter) (ownmapdal.TagNodeMap, ownmapdal.TagWayMap, ownmapdal.TagRelationMap, errorsx.Error)
func (*MapmakerSQLDB) Name ¶
func (db *MapmakerSQLDB) Name() string
Click to show internal directories.
Click to hide internal directories.