throw new Error(ex);
}
}
final Rectangle2D bnd = bounds.getBounds();
final Projection proj = new OrthographicAzimuthalProjection();
proj.setProjectionLongitudeDegrees(bnd.getX() + bnd.getWidth()/2);
proj.setProjectionLatitudeDegrees(bnd.getY() + bnd.getHeight()/2);
proj.initialize();
return proj;
}