Beispiel #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
}
Beispiel #2
0
func (w *Way) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(w.Nodes_).BoundingBox()
}
Beispiel #3
0
func (r *Relation) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(r.GetNodes()).BoundingBox()
}