src.gov.nasa.worldwind.globes.Earth Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.globes;
import gov.nasa.worldwind.avlist.AVKey;
/**
* Defines a model of the Earth, using the World Geodetic System (WGS84).
*
* @author Tom Gaskins
* @version $Id: Earth.java 1958 2014-04-24 19:25:37Z tgaskins $
*/
public class Earth extends EllipsoidalGlobe
{
public static final double WGS84_EQUATORIAL_RADIUS = 6378137.0; // ellipsoid equatorial getRadius, in meters
public static final double WGS84_POLAR_RADIUS = 6356752.3; // ellipsoid polar getRadius, in meters
public static final double WGS84_ES = 0.00669437999013; // eccentricity squared, semi-major axis
public static final double ELEVATION_MIN = -11000d; // Depth of Marianas trench
public static final double ELEVATION_MAX = 8500d; // Height of Mt. Everest.
public Earth()
{
super(WGS84_EQUATORIAL_RADIUS, WGS84_POLAR_RADIUS, WGS84_ES,
EllipsoidalGlobe.makeElevationModel(AVKey.EARTH_ELEVATION_MODEL_CONFIG_FILE,
"config/Earth/EarthElevations2.xml"));
}
public String toString()
{
return "Earth";
}
}