예제 #1
0
파일: osm.go 프로젝트: 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
}
예제 #2
0
파일: way.go 프로젝트: vetinari/osm
func (w *Way) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(w.Nodes_).BoundingBox()
}
예제 #3
0
파일: relation.go 프로젝트: vetinari/osm
func (r *Relation) BoundingBox() (*bbox.BBox, error) {
	return node.NodeList(r.GetNodes()).BoundingBox()
}