Example #1
0
File: osm.go Project: vetinari/osm
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
}
Example #2
0
File: way.go Project: vetinari/osm
func (w *Way) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(w.Nodes_).BoundingBox()
}
Example #3
0
func (r *Relation) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(r.GetNodes()).BoundingBox()
}