- nodes = Node.find(:all, :conditions => cond_tags)
- end
-
- # Get the remaining objects:
- # Fetch the ways (until now only had their ids)
- ways = Way.find(way_ids)
-
- # Fetch any segments needed for our ways (only have matching segments so far)
- seg_ids = Array.new
- ways.each do |way|
- seg_ids += way.segs
- end
- segments += Segment.find(seg_ids)
-
- # Fetch any nodes needed for our segments (only have matching nodes so far)
- node_ids = Array.new
- segments.each do |seg|
- node_ids += [seg.node_a, seg.node_b]