Documentation
¶
Index ¶
- func OsmXmlHeader() string
- type DataFormat
- type OSM
- func (o *OSM) BoundingBox() (*bbox.BBox, error)
- func (o *OSM) FilterTags(tl ...*tags.Tags) *OSM
- func (o *OSM) GetNode(id int64) *node.Node
- func (o *OSM) GetNodeList() *node.NodeList
- func (o *OSM) GetRelation(id int64) *relation.Relation
- func (o *OSM) GetRelationList() *relation.RelationList
- func (o *OSM) GetWay(id int64) *way.Way
- func (o *OSM) GetWayList() *way.WayList
- func (self *OSM) Merge(other *OSM)
- func (o *OSM) String() string
- func (o *OSM) String_old() string
- type OSMReader
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OsmXmlHeader ¶
func OsmXmlHeader() string
Types ¶
type DataFormat ¶
type DataFormat int
const ( FmtUnknown DataFormat = iota FmtXML FmtPBF FmtGeoJSON FmtOverpassJSON )
type OSM ¶
type OSM struct {
Version string
BBox bbox.BBox
Origin string
Nodes map[int64]*node.Node
Ways map[int64]*way.Way
Relations map[int64]*relation.Relation
Users map[uint32]*user.User
Timestamps map[string]time.Time
Handler OSMReader
}
the main entry point for OSM data
func (*OSM) GetNodeList ¶
func (*OSM) GetRelationList ¶
func (o *OSM) GetRelationList() *relation.RelationList
func (*OSM) GetWayList ¶
func (*OSM) String_old ¶
returns a stringified (in osm XML format) version of the OSM. Do not use for huge OSM data, better dump to some file via xml.Dump()
Click to show internal directories.
Click to hide internal directories.