|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.cs.Info
org.geotools.cs.Ellipsoid
DefaultEllipsoid.
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 Form| Field Summary | |
static Ellipsoid |
WGS84
Deprecated. WGS 1984 ellipsoid. |
| Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
protected |
Ellipsoid(java.lang.CharSequence name,
double semiMajorAxis,
double semiMinorAxis,
double inverseFlattening,
boolean ivfDefinitive,
Unit unit)
Deprecated. Constructs a new ellipsoid using the specified axis length. |
| Method Summary | |
static Ellipsoid |
createEllipsoid(java.lang.CharSequence name,
double semiMajorAxis,
double semiMinorAxis,
Unit unit)
Deprecated. Replaced by DefaultEllipsoid.createEllipsoid(java.lang.String, double, double, javax.units.Unit). |
static Ellipsoid |
createFlattenedSphere(java.lang.CharSequence name,
double semiMajorAxis,
double inverseFlattening,
Unit unit)
Deprecated. Replaced by DefaultEllipsoid.createFlattenedSphere(java.lang.String, double, double, javax.units.Unit). |
boolean |
equals(Info object,
boolean compareNames)
Deprecated. Compare this ellipsoid with the specified object for equality. |
Unit |
getAxisUnit()
Deprecated. Replaced by DefaultEllipsoid.getAxisUnit(). |
double |
getEccentricity()
Deprecated. Replaced by DefaultEllipsoid.getEccentricity(). |
double |
getInverseFlattening()
Deprecated. Replaced by DefaultEllipsoid.getInverseFlattening(). |
double |
getSemiMajorAxis()
Deprecated. Replaced by DefaultEllipsoid.getSemiMajorAxis(). |
double |
getSemiMinorAxis()
Deprecated. Replaced by DefaultEllipsoid.getSemiMinorAxis(). |
int |
hashCode()
Deprecated. Returns a hash value for this ellipsoid. |
boolean |
isIvfDefinitive()
Deprecated. Replaced by DefaultEllipsoid.isIvfDefinitive(). |
double |
orthodromicDistance(double x1,
double y1,
double x2,
double y2)
Deprecated. Replaced by DefaultEllipsoid.orthodromicDistance(double,double,double,double). |
double |
orthodromicDistance(java.awt.geom.Point2D P1,
java.awt.geom.Point2D P2)
Deprecated. Replaced by DefaultEllipsoid.orthodromicDistance(Point2D,Point2D). |
| Methods inherited from class org.geotools.cs.Info |
ensureNonNull, equals, getAbbreviation, getAlias, getAlias, getAuthority, getAuthorityCode, getIdentifiers, getName, getRemarks, toString, toWKT |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final Ellipsoid WGS84
org.geotools packages.
| Constructor Detail |
protected Ellipsoid(java.lang.CharSequence 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 - true if the inverse flattening is definitive.unit - The units of the semi-major and semi-minor axis values.| Method Detail |
public static Ellipsoid createEllipsoid(java.lang.CharSequence name,
double semiMajorAxis,
double semiMinorAxis,
Unit unit)
DefaultEllipsoid.createEllipsoid(java.lang.String, double, double, javax.units.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.CoordinateSystemFactory.createEllipsoid(java.lang.CharSequence, double, double, org.geotools.units.Unit)
public static Ellipsoid createFlattenedSphere(java.lang.CharSequence name,
double semiMajorAxis,
double inverseFlattening,
Unit unit)
DefaultEllipsoid.createFlattenedSphere(java.lang.String, double, double, javax.units.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.CoordinateSystemFactory.createFlattenedSphere(java.lang.CharSequence, double, double, org.geotools.units.Unit)public double getSemiMajorAxis()
DefaultEllipsoid.getSemiMajorAxis().
CS_Ellipsoid.getSemiMajorAxis()public double getSemiMinorAxis()
DefaultEllipsoid.getSemiMinorAxis().
CS_Ellipsoid.getSemiMinorAxis()public double getEccentricity()
DefaultEllipsoid.getEccentricity().
e=sqrt(2f-f?).
public double getInverseFlattening()
DefaultEllipsoid.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()
DefaultEllipsoid.isIvfDefinitive().
CS_Ellipsoid.isIvfDefinitive()
public double orthodromicDistance(java.awt.geom.Point2D P1,
java.awt.geom.Point2D P2)
DefaultEllipsoid.orthodromicDistance(Point2D,Point2D).
orthodromicDistance(double,double,double,double).
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)
DefaultEllipsoid.orthodromicDistance(double,double,double,double).
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()
DefaultEllipsoid.getAxisUnit().
CS_Ellipsoid.getAxisUnit()
public boolean equals(Info object,
boolean compareNames)
equals in class Infoobject - The object to compare to this.compareNames - true to comparare the name,
alias, authority
code, etc. as well, or false to compare only properties
relevant to transformations.
true if both objects are equal.public int hashCode()
equals(Info, false).
hashCode in class Info
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||