s.append(NL);
}
}
void addBbox(OsmPrimitive o) {
BBox bbox = o.getBBox();
if (bbox != null) {
add(tr("Bounding box: "), bbox.toStringCSV(", "));
EastNorth bottomRigth = Main.getProjection().latlon2eastNorth(bbox.getBottomRight());
EastNorth topLeft = Main.getProjection().latlon2eastNorth(bbox.getTopLeft());
add(tr("Bounding box (projected): "),
Double.toString(topLeft.east()), ", ",
Double.toString(bottomRigth.north()), ", ",
Double.toString(bottomRigth.east()), ", ",
Double.toString(topLeft.north()));
add(tr("Center of bounding box: "), bbox.getCenter().toStringCSV(", "));
}
}