gov.nasa.worldwind.globes.Earth Maven / Gradle / Ivy
The newest version!
/*
* 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 Earth (ElevationModel elevationModel) {
super(WGS84_EQUATORIAL_RADIUS, WGS84_POLAR_RADIUS, WGS84_ES, elevationModel);
}
public String toString()
{
return "Earth";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy