Пример #1
0
func (o *OSM) GetNodeList() *node.NodeList {
	var nl []*node.Node
	for _, n := range o.Nodes {
		nl = append(nl, n)
	}
	nlist := node.NodeList(nl)
	return &nlist
}
Пример #2
0
func (w *Way) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(w.Nodes_).BoundingBox()
}
Пример #3
0
func (r *Relation) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(r.GetNodes()).BoundingBox()
}