Documentation ¶
Overview ¶
Package database defines interfaces to be implemented.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BulkBeginner ¶
type BulkBeginner interface {
BeginBulk() error
}
type Generalizer ¶
type Inserter ¶
type Inserter interface { // ProbeXxx returns true if the element should be inserted. // The interface{} value is passed to InsertXxx when that element // gets inserted (can be used to pass a match object to the insert call). ProbePoint(element.OSMElem) (bool, interface{}) ProbeLineString(element.OSMElem) (bool, interface{}) ProbePolygon(element.OSMElem) (bool, interface{}) // InsertXxx inserts element of that type into the database. // element.Geom is set to that type. InsertPoint(element.OSMElem, interface{}) error InsertLineString(element.OSMElem, interface{}) error InsertPolygon(element.OSMElem, interface{}) error // SelectRelationPolygons returns a slice of all members that are already // imported with a relation with tags. SelectRelationPolygons(element.Tags, []element.Member) []element.Member }
Click to show internal directories.
Click to hide internal directories.