|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.projection.IlvEllipsoid
public class IlvEllipsoid
This class defines an ellipsoid. Ellipsoids are used in map projections to represent the figure of the earth. For many applications, and especially in small-scale mapping, the earth can be represented as a sphere. However, because the earth rotates on its axis and is slightly flattened, it is better approximated by an ellipsoid of rotation about the polar axis. Ellipsoidal projections are used for accurate large-scale maps and plane coordinate systems.
| Field Summary | |
|---|---|
static IlvEllipsoid |
CPM
The ellipsoid specified by the French Weights and Measures Commission ("Commission des Poids et Mesures") in 1799. |
static IlvEllipsoid |
SGS85
The ellipsoid used in the Soviet Geodetic System 85 |
static IlvEllipsoid |
SPHERE
A spherical ellipsoid representing the earth. |
static IlvEllipsoid |
WGS60
The WGS 60 ellipsoid. |
static IlvEllipsoid |
WGS66
The WGS 66 ellipsoid. |
static IlvEllipsoid |
WGS72
The WGS 72 ellipsoid. |
static IlvEllipsoid |
WGS84
The WGS 84 ellipsoid. |
| Constructor Summary | |
|---|---|
IlvEllipsoid(double radius)
Creates a sphere with the specified radius. |
|
IlvEllipsoid(double a,
double es)
Creates an ellipsoid with the specified equatorial radius and eccentricity. |
|
IlvEllipsoid(double a,
double es,
String name,
String comment)
Creates a named ellipsoid with the specified equatorial radius and eccentricity. |
|
IlvEllipsoid(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
| Method Summary | |
|---|---|
boolean |
equivalent(IlvEllipsoid e)
Returns true if the ellipsoid passed as the argument
is equivalent to the object. |
static double |
ESFromFlattening(double f)
Returns the eccentricity squared which is computed from the flattening of the ellipsoid. |
static double |
ESFromPolarRadius(double a,
double b)
Returns the eccentricity squared which is computed from the semi-major axis and the semi-minor axis of the ellipsoid. |
double |
getA()
Returns the semi-major axis of the ellipsoid. |
IlvEllipsoid |
getASphere()
Returns a sphere whose radius is the arithmetic mean of the minor and major axes. |
IlvEllipsoid |
getASphere(double phi)
Returns a sphere whose radius is the arithmetic mean of the principle radii at the specified latitude. |
double |
getB()
Returns the semi-minor axis of the ellipsoid. |
String |
getComment()
Returns a description of the ellipsoid, if available. |
double |
getES()
Returns the eccentricity squared of the ellipsoid. |
IlvEllipsoid |
getGSphere()
Returns a sphere whose radius is the geometric mean of the minor and major axes. |
IlvEllipsoid |
getGSphere(double phi)
Returns a sphere whose radius is the geometric mean of the principle radii at the specified latitude. |
IlvEllipsoid |
getHSphere()
Returns a sphere whose radius is the harmonic mean of the minor and major axes. |
String |
getName()
Returns the name of the ellipsoid. |
IlvEllipsoid |
getSphereOfSameArea()
Returns a sphere of equivalent surface area. |
IlvEllipsoid |
getSphereOfSameVolume()
Returns a sphere of equivalent volume. |
boolean |
isSphere()
Returns true if the ellipsoid is a sphere. |
String |
toString()
Converts the ellipsoid to a string. |
void |
write(IlvOutputStream stream)
Writes the object onto an IlvOutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final IlvEllipsoid SPHERE
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid SGS85
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid CPM
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid WGS60
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid WGS66
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid WGS72
IlvEllipsoidCollection.getEllipsoids()public static final IlvEllipsoid WGS84
IlvEllipsoidCollection.getEllipsoids()| Constructor Detail |
|---|
public IlvEllipsoid(double radius)
radius - the radius of the sphere in meters
public IlvEllipsoid(double a,
double es)
a - semi-major axis of the ellipsoid or equatorial radiuses - eccentricity squared of the ellipsoid
public IlvEllipsoid(double a,
double es,
String name,
String comment)
a - semi-major axis of the ellipsoid or equatorial radiuses - eccentricity squared of the ellipsoidname - name of the ellipsoidcomment - a short comment describing the ellipsoid
public IlvEllipsoid(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - the input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
public final double getA()
public final double getB()
public final double getES()
public boolean isSphere()
true if the ellipsoid is a sphere.
public IlvEllipsoid getSphereOfSameArea()
public IlvEllipsoid getSphereOfSameVolume()
public IlvEllipsoid getASphere()
public IlvEllipsoid getASphere(double phi)
phi - the latitude in radiansIlvProjectionUtil.DMSToRadian(java.lang.String),
IlvProjectionUtil.DegreeToRadian(double)public IlvEllipsoid getGSphere()
public IlvEllipsoid getGSphere(double phi)
phi - the latitude in radians.IlvProjectionUtil.DMSToRadian(java.lang.String),
IlvProjectionUtil.DegreeToRadian(double)public IlvEllipsoid getHSphere()
public static double ESFromPolarRadius(double a,
double b)
a - semi-major axis of the ellipsoid or equatorial radius.b - semi-minor axis of the ellipsoid or polar radius.public static double ESFromFlattening(double f)
f - flattening of the ellipsoid.public String getName()
public String getComment()
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.public boolean equivalent(IlvEllipsoid e)
true if the ellipsoid passed as the argument
is equivalent to the object.
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||