/**
* Calculate the box which contains all points of the object.
*/
public void calcBoundingBox() {
final Angle north = new Angle(_center.getNode().getLatitude().getVal());
final Angle south = new Angle(_center.getNode().getLatitude().getVal());
final Angle east = new Angle(_center.getNode().getLongitude().getVal());
final Angle west = new Angle(_center.getNode().getLongitude().getVal());
for (final MapNodeRef ref : _nodes) {
final MapNode node = ref.getNode();
if (north.getVal() < node.getLatitude().getVal())
north.setVal(node.getLatitude().getVal());
if (south.getVal() > node.getLatitude().getVal())
south.setVal(node.getLatitude().getVal());
if (east.getVal() < node.getLongitude().getVal())
east.setVal(node.getLongitude().getVal());
if (west.getVal() > node.getLongitude().getVal())
west.setVal(node.getLongitude().getVal());
}
_boundingBox = new BoundingBox(north, south, west, east);
}