|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.cs.Info
org.deegree.model.csct.cs.Ellipsoid
public class 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.
Field Summary | |
---|---|
static Ellipsoid |
WGS84
WGS 1984 ellipsoid. |
Fields inherited from class org.deegree.model.csct.cs.Info |
---|
pool |
Constructor Summary | |
---|---|
Ellipsoid(Map properties,
double semiMajorAxis,
double semiMinorAxis,
double inverseFlattening,
boolean ivfDefinitive,
Unit unit)
Construct a new ellipsoid using the specified axis length. |
|
Ellipsoid(String name,
double semiMajorAxis,
double semiMinorAxis,
Unit unit)
Construct a new ellipsoid using the specified axis length. |
|
Ellipsoid(String name,
double radius,
Unit unit)
Construct a new sphere using the specified radius. |
Method Summary | |
---|---|
(package private) String |
addString(StringBuffer buffer)
Fill the part inside "[...]". |
static Ellipsoid |
createFlattenedSphere(String name,
double semiMajorAxis,
double inverseFlattening,
Unit unit)
Construct a new ellipsoid using the specified axis length and inverse flattening value. |
boolean |
equals(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(Point2D P1,
Point2D P2)
Returns an estimation of orthodromic distance between two geographic coordinates. |
Methods inherited from class org.deegree.model.csct.cs.Info |
---|
addString, addUnit, 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 |
---|
public static final Ellipsoid WGS84
org.deegree.model
packages.
Constructor Detail |
---|
public Ellipsoid(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(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.Ellipsoid(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(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.
public double getSemiMajorAxis()
public double 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).
public boolean isIvfDefinitive()
public double orthodromicDistance(Point2D P1, 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()
public boolean equals(Object object)
equals
in class Info
object
-
public int hashCode()
hashCode
in class Info
String addString(StringBuffer buffer)
buffer
-
|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net