|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.wkt.Formattable org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.datum.DefaultEllipsoid
Geometric figure that can be used to describe the approximate shape of the earth. In mathematical terms, it is a surface formed by the rotation of an ellipse about its minor axis. An ellipsoid requires two defining parameters:
Field Summary | |
static DefaultEllipsoid |
CLARKE_1866
Clarke 1866 ellipsoid with axis in metres. |
static DefaultEllipsoid |
GRS80
GRS 80 ellipsoid with axis in metres. |
static DefaultEllipsoid |
INTERNATIONAL_1924
International 1924 ellipsoid with axis in metres. |
static DefaultEllipsoid |
SPHERE
A sphere with a radius of 6371000 metres. |
static DefaultEllipsoid |
WGS84
WGS 1984 ellipsoid with axis in metres. |
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject |
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
Fields inherited from interface org.opengis.referencing.IdentifiedObject |
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
protected |
DefaultEllipsoid(org.opengis.referencing.datum.Ellipsoid ellipsoid)
Constructs a new ellipsoid with the same values than the specified one. |
protected |
DefaultEllipsoid(java.util.Map properties,
double semiMajorAxis,
double semiMinorAxis,
double inverseFlattening,
boolean ivfDefinitive,
javax.units.Unit unit)
Constructs a new ellipsoid using the specified axis length. |
Method Summary | |
static DefaultEllipsoid |
createEllipsoid(java.util.Map properties,
double semiMajorAxis,
double semiMinorAxis,
javax.units.Unit unit)
Constructs a new ellipsoid using the specified axis length. |
static DefaultEllipsoid |
createEllipsoid(java.lang.String name,
double semiMajorAxis,
double semiMinorAxis,
javax.units.Unit unit)
Constructs a new ellipsoid using the specified axis length. |
static DefaultEllipsoid |
createFlattenedSphere(java.util.Map properties,
double semiMajorAxis,
double inverseFlattening,
javax.units.Unit unit)
Constructs a new ellipsoid using the specified axis length and inverse flattening value. |
static DefaultEllipsoid |
createFlattenedSphere(java.lang.String name,
double semiMajorAxis,
double inverseFlattening,
javax.units.Unit unit)
Constructs a new ellipsoid using the specified axis length and inverse flattening value. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this ellipsoid with the specified object for equality. |
protected java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of a Well Known Text (WKT) element. |
javax.units.Unit |
getAxisUnit()
Returns the linear unit 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()
Length of the semi-major axis of the ellipsoid. |
double |
getSemiMinorAxis()
Length of the semi-minor axis of the ellipsoid. |
int |
hashCode()
Returns a hash value for this ellipsoid. |
boolean |
isIvfDefinitive()
Indicates if the inverse flattening is definitive for this ellipsoid. |
boolean |
isSphere()
if the ellipsoid is degenerate and is actually a sphere. |
double |
orthodromicDistance(double x1,
double y1,
double x2,
double y2)
Returns the orthodromic distance between two geographic coordinates. |
double |
orthodromicDistance(java.awt.geom.Point2D P1,
java.awt.geom.Point2D P2)
Returns the orthodromic distance between two geographic coordinates. |
static DefaultEllipsoid |
wrap(org.opengis.referencing.datum.Ellipsoid ellipsoid)
Wraps an arbitrary ellipsoid into a Geotools implementation. |
Methods inherited from class org.geotools.referencing.AbstractIdentifiedObject |
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toString, toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.IdentifiedObject |
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Field Detail |
public static final DefaultEllipsoid WGS84
public static final DefaultEllipsoid GRS80
public static final DefaultEllipsoid INTERNATIONAL_1924
public static final DefaultEllipsoid CLARKE_1866
public static final DefaultEllipsoid SPHERE
Constructor Detail |
protected DefaultEllipsoid(org.opengis.referencing.datum.Ellipsoid ellipsoid)
wrap(org.opengis.referencing.datum.Ellipsoid)
protected DefaultEllipsoid(java.util.Map properties, double semiMajorAxis, double semiMinorAxis, double inverseFlattening, boolean ivfDefinitive, javax.units.Unit unit)
properties
- Set of properties. Should contains at least "name"
.semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.inverseFlattening
- The inverse of the flattening value.ivfDefinitive
- if the inverse flattening is definitive.unit
- The units of the semi-major and semi-minor axis values.createEllipsoid(java.lang.String, double, double, javax.units.Unit)
,
createFlattenedSphere(java.lang.String, double, double, javax.units.Unit)
Method Detail |
public static DefaultEllipsoid createEllipsoid(java.lang.String name, double semiMajorAxis, double semiMinorAxis, javax.units.Unit unit)
name
- The ellipsoid name.semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.unit
- The units of the semi-major and semi-minor axis values.public static DefaultEllipsoid createEllipsoid(java.util.Map properties, double semiMajorAxis, double semiMinorAxis, javax.units.Unit unit)
properties
- Set of properties. Should contains at least "name"
.semiMajorAxis
- The equatorial radius.semiMinorAxis
- The polar radius.unit
- The units of the semi-major and semi-minor axis values.public static DefaultEllipsoid createFlattenedSphere(java.lang.String name, double semiMajorAxis, double inverseFlattening, javax.units.Unit unit)
name
- The ellipsoid name.semiMajorAxis
- The equatorial radius.inverseFlattening
- The inverse flattening value.unit
- The units of the semi-major and semi-minor axis
values.public static DefaultEllipsoid createFlattenedSphere(java.util.Map properties, double semiMajorAxis, double inverseFlattening, javax.units.Unit unit)
properties
- Set of properties. Should contains at least "name"
.semiMajorAxis
- The equatorial radius.inverseFlattening
- The inverse flattening value.unit
- The units of the semi-major and semi-minor axis
values.public static DefaultEllipsoid wrap(org.opengis.referencing.datum.Ellipsoid ellipsoid)
orthodromic distance computation
(for example) are desired.
If the supplied ellipsoid is already an instance of or is
, then it is returned unchanged.
public javax.units.Unit getAxisUnit()
getAxisUnit
in interface org.opengis.referencing.datum.Ellipsoid
public double getSemiMajorAxis()
getSemiMajorAxis
in interface org.opengis.referencing.datum.Ellipsoid
public double getSemiMinorAxis()
getSemiMinorAxis
in interface org.opengis.referencing.datum.Ellipsoid
public double getEccentricity()
e=sqrt(2f-f?)
.
public double getInverseFlattening()
isSphere()
returns ),
the Double.POSITIVE_INFINITY
value is used.
getInverseFlattening
in interface org.opengis.referencing.datum.Ellipsoid
public boolean isIvfDefinitive()
isIvfDefinitive
in interface org.opengis.referencing.datum.Ellipsoid
public boolean isSphere()
isSphere
in interface org.opengis.referencing.datum.Ellipsoid
public double orthodromicDistance(java.awt.geom.Point2D P1, java.awt.geom.Point2D P2)
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)
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 boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractIdentifiedObject
object
- The object to compare to .compareMetadata
- for performing a strict comparaison, or
for comparing only properties relevant to transformations.
public int hashCode()
equals
(AbstractIdentifiedObject, false)
.
hashCode
in class AbstractIdentifiedObject
protected java.lang.String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.
Formattable.toWKT()
,
Formattable.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |