public class IlvEllipsoid extends Object implements Serializable, IlvPersistentObject
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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.
|
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()
public IlvEllipsoid(double radius)
radius
- the radius of the sphere in meterspublic IlvEllipsoid(double a, double es)
a
- semi-major axis of the ellipsoid or equatorial radiuses
- eccentricity squared of the ellipsoidpublic 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 ellipsoidpublic IlvEllipsoid(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- the input stream.IlvReadFileException
- if the format is not correct.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 IlvPersistentObject
stream
- the output streamIOException
- 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.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.