public static Projection getDefaultProjectionFromEnvironment(int width, int height) {   Projection proj = null;  int w = (width <= 0) ? Environment.getInteger(Environment.Width, MapBean.DEFAULT_WIDTH) : width; int h = (height <= 0) ? Environment.getInteger(Environment.Height, MapBean.DEFAULT_HEIGHT) : height;  try { proj = ProjectionFactory.makeProjection(Environment.get(Environment.Projection), Environment.getFloat(Environment.Latitude, 0f), Environment.getFloat(Environment.Longitude, 0f), Environment.getFloat(Environment.Scale, Float.POSITIVE_INFINITY), w, h);  } catch (com.bbn.openmap.proj.ProjectionException pe) { Debug.output("ProjectionFactory.getDefaultProjectionFromEnvironment(): Can't use (" + Environment.Projection + " = " + Environment.get(Environment.Projection) + ") property as a projection class, need a class name instead.  Using default of com.bbn.openmap.proj.Mercator."); proj = ProjectionFactory.makeProjection(Mercator.class, Environment.getFloat(Environment.Latitude, 0f), Environment.getFloat(Environment.Longitude, 0f), Environment.getFloat(Environment.Scale, Float.POSITIVE_INFINITY), w, h); }  return proj;
public static Projection getDefaultProjectionFromEnvironment() { return getDefaultProjectionFromEnvironment(0, 0);
    public static Projection getDefaultProjectionFromEnvironment(int width,                                                                 int height) {        // Initialize the map projection, scale, center        // with user prefs or defaults        Projection proj = null;        int w = (width <= 0) ? Environment.getInteger(Environment.Width,                MapBean.DEFAULT_WIDTH) : width;        int h = (height <= 0) ? Environment.getInteger(Environment.Height,                MapBean.DEFAULT_HEIGHT) : height;        try {            proj = ProjectionFactory.makeProjection(Environment.get(Environment.Projection),                    Environment.getFloat(Environment.Latitude, 0f),                    Environment.getFloat(Environment.Longitude, 0f),                    Environment.getFloat(Environment.Scale,                            Float.POSITIVE_INFINITY),                    w,                    h);        } catch (com.bbn.openmap.proj.ProjectionException pe) {            Debug.output("ProjectionFactory.getDefaultProjectionFromEnvironment(): Can't use ("                    + Environment.Projection                    + " = "                    + Environment.get(Environment.Projection)                    + ") property as a projection class, need a class name instead.  Using default of com.bbn.openmap.proj.Mercator.");            proj = ProjectionFactory.makeProjection(Mercator.class,                    Environment.getFloat(Environment.Latitude, 0f),                    Environment.getFloat(Environment.Longitude, 0f),                    Environment.getFloat(Environment.Scale,                            Float.POSITIVE_INFINITY),                    w,                    h);        }        return proj;    }