|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.cs.Info
org.deegree_impl.model.cs.Ellipsoid
The figure formed by the rotation of an ellipse about an axis. In this context, the axis of rotation is always the minor axis. It is named geodetic ellipsoid if the parameters are derived by the measurement of the shape and the size of the Earth to approximate the geoid as close as possible.
CS_Ellipsoid
,
Serialized FormNested Class Summary | |
private class |
Ellipsoid.Export
Wrap a Ellipsoid object for use with OpenGIS.
|
Nested classes inherited from class org.deegree_impl.model.cs.Info |
Info.AngularUnit, Info.LinearUnit |
Field Summary | |
private double |
inverseFlattening
The inverse of the flattening value, or Double.POSITIVE_INFINITY if the
ellipsoid is a sphere. |
private boolean |
ivfDefinitive
Is the Inverse Flattening definitive for this ellipsoid? |
private double |
semiMajorAxis
The equatorial radius. |
private double |
semiMinorAxis
The polar radius. |
private static long |
serialVersionUID
Serial number for interoperability with different versions. |
private Unit |
unit
The units of the semi-major and semi-minor axis values. |
static Ellipsoid |
WGS84
WGS 1984 ellipsoid. |
Fields inherited from class org.deegree_impl.model.cs.Info |
pool |
Constructor Summary | |
(package private) |
Ellipsoid(java.util.Map properties,
double semiMajorAxis,
double semiMinorAxis,
double inverseFlattening,
boolean ivfDefinitive,
Unit unit)
Construct a new ellipsoid using the specified axis length. |
private |
Ellipsoid(java.lang.String name,
double semiMajorAxis,
double semiMinorAxis,
double inverseFlattening,
boolean ivfDefinitive,
Unit unit)
Construct a new ellipsoid using the specified axis length. |
|
Ellipsoid(java.lang.String name,
double semiMajorAxis,
double semiMinorAxis,
Unit unit)
Construct a new ellipsoid using the specified axis length. |
|
Ellipsoid(java.lang.String name,
double radius,
Unit unit)
Construct a new sphere using the specified radius. |
Method Summary | |
(package private) java.lang.String |
addString(java.lang.StringBuffer buffer)
Fill the part inside "[...]". |
private static double |
check(java.lang.String name,
double value)
Check the argument validity. |
static Ellipsoid |
createFlattenedSphere(java.lang.String name,
double semiMajorAxis,
double inverseFlattening,
Unit unit)
Construct a new ellipsoid using the specified axis length and inverse flattening value. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this ellipsoid for equality. |
Unit |
getAxisUnit()
Returns the units of the semi-major and semi-minor axis values. |
double |
getEccentricity()
The ratio of the distance between the center and a focus of the ellipse to the length of its semimajor axis. |
double |
getInverseFlattening()
Returns the value of the inverse of the flattening constant. |
double |
getSemiMajorAxis()
Gets the equatorial radius. |
double |
getSemiMinorAxis()
Gets the polar radius. |
int |
hashCode()
Returns a hash value for this ellipsoid. |
boolean |
isIvfDefinitive()
Is the Inverse Flattening definitive for this ellipsoid? |
double |
orthodromicDistance(double x1,
double y1,
double x2,
double y2)
Returns an estimation of orthodromic distance between two geographic coordinates. |
double |
orthodromicDistance(java.awt.geom.Point2D P1,
java.awt.geom.Point2D P2)
Returns an estimation of orthodromic distance between two geographic coordinates. |
(package private) java.lang.Object |
toOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this ellipsoid. |
Methods inherited from class org.deegree_impl.model.cs.Info |
addUnit, cachedOpenGIS, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, readResolve, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final Ellipsoid WGS84
org.deegree_impl.model
packages.
private final double semiMajorAxis
private final double semiMinorAxis
private final double inverseFlattening
Double.POSITIVE_INFINITY
if the
ellipsoid is a sphere.
private final boolean ivfDefinitive
private final Unit unit
Constructor Detail |
public Ellipsoid(java.lang.String name, double radius, Unit unit)
name
- Name of this sphere.radius
- The equatorial and polar radius.unit
- The units of the semi-major and semi-minor axis values.public Ellipsoid(java.lang.String name, double semiMajorAxis, double semiMinorAxis, Unit unit)
name
- Name of this ellipsoid.semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.unit
- The units of the semi-major and semi-minor axis values.private Ellipsoid(java.lang.String name, double semiMajorAxis, double semiMinorAxis, double inverseFlattening, boolean ivfDefinitive, Unit unit)
name
- Name of this ellipsoid.semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.inverseFlattening
- The inverse of the flattening value.ivfDefinitive
- Is the Inverse Flattening definitive for this ellipsoid?unit
- The units of the semi-major and semi-minor axis values.Ellipsoid(java.util.Map properties, double semiMajorAxis, double semiMinorAxis, double inverseFlattening, boolean ivfDefinitive, Unit unit)
properties
- The set of properties (see Info
).semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.inverseFlattening
- The inverse of the flattening value.ivfDefinitive
- Is the Inverse Flattening definitive for this ellipsoid?unit
- The units of the semi-major and semi-minor axis values.Method Detail |
public static Ellipsoid createFlattenedSphere(java.lang.String name, double semiMajorAxis, double inverseFlattening, Unit unit)
name
- Name of this ellipsoid.semiMajorAxis
- The equatorial radius.inverseFlattening
- The inverse flattening value.unit
- The units of the semi-major and semi-minor axis values.private static double check(java.lang.String name, double value) throws java.lang.IllegalArgumentException
value
should be greater
than zero.
name
- Argument name.value
- Argument value.
value
.
java.lang.IllegalArgumentException
- if value
is not greater than 0.public double getSemiMajorAxis()
CS_Ellipsoid.getSemiMajorAxis()
public double getSemiMinorAxis()
CS_Ellipsoid.getSemiMinorAxis()
public double getEccentricity()
e=sqrt(2f-f²)
.
public double getInverseFlattening()
ivf=re/(re-rp)
.
For perfect spheres, this method returns Double.POSITIVE_INFINITY
(which is the correct value).
CS_Ellipsoid.getInverseFlattening()
public boolean isIvfDefinitive()
public double orthodromicDistance(java.awt.geom.Point2D P1, java.awt.geom.Point2D P2)
P1
- Longitude and latitude of first point (in degrees).P2
- Longitude and latitude of second point (in degrees).
public double orthodromicDistance(double x1, double y1, double x2, double y2)
x1
- Longitude of first point (in degrees).y1
- Latitude of first point (in degrees).x2
- Longitude of second point (in degrees).y2
- Latitude of second point (in degrees).
public Unit getAxisUnit()
CS_Ellipsoid.getAxisUnit()
public boolean equals(java.lang.Object object)
equals
in class Info
public int hashCode()
hashCode
in class Info
java.lang.String addString(java.lang.StringBuffer buffer)
addString
in class Info
buffer
- The buffer to add string to.
final java.lang.Object toOpenGIS(java.lang.Object adapters)
Object
in order
to avoid too early class loading of OpenGIS interface.
toOpenGIS
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |