|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.data.projection.Ellipsoid
public class Ellipsoid
the reference ellipsoids
Field Summary | |
---|---|
double |
a
half long axis |
double |
b
half short axis |
static Ellipsoid |
Bessel1841
Bessel 1841 ellipsoid |
static Ellipsoid |
clarkeIGN
Clarke 1880 IGN (French national geographic institute) |
double |
e
first eccentricity |
double |
e2
first eccentricity squared |
double |
eb2
square of the second eccentricity |
static Ellipsoid |
GRS80
GRS80 ellipsoid |
static Ellipsoid |
hayford
Hayford's ellipsoid 1909 (ED50 system) Proj.4 code: intl |
static Ellipsoid |
WGS84
WGS84 ellipsoid |
Constructor Summary | |
---|---|
private |
Ellipsoid(double a,
double b,
double e,
double e2,
double eb2)
private constructur - use one of the create_* methods |
Method Summary | |
---|---|
LatLon |
cart2LatLon(double[] XYZ)
convert cartesian coordinates to ellipsoidal coordinates |
LatLon |
cart2LatLon(double[] XYZ,
double epsilon)
|
static Ellipsoid |
create_a_b(double a,
double b)
create a new ellipsoid |
static Ellipsoid |
create_a_es(double a,
double es)
create a new ellipsoid |
static Ellipsoid |
create_a_f(double a,
double f)
create a new ellipsoid |
static Ellipsoid |
create_a_rf(double a,
double rf)
create a new ellipsoid |
double |
latitude(double latIso,
double e,
double epsilon)
|
double |
latitudeIsometric(double phi)
Returns isometric latitude of phi on first eccentricity (e) |
double |
latitudeIsometric(double phi,
double e)
Returns isometric latitude of phi on given first eccentricity (e) |
double[] |
latLon2Cart(LatLon coord)
convert ellipsoidal coordinates to cartesian coordinates |
double |
meridionalArc(double phi)
Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude, in meters. |
double |
meridionalRadiusOfCurvature(double phi)
Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude. |
private static double |
sqr(double x)
|
java.lang.String |
toString()
|
double |
verticalRadiusOfCurvature(double phi)
Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Ellipsoid clarkeIGN
public static final Ellipsoid hayford
public static final Ellipsoid GRS80
public static final Ellipsoid WGS84
public static final Ellipsoid Bessel1841
public final double a
public final double b
public final double e
public final double e2
public final double eb2
Constructor Detail |
---|
private Ellipsoid(double a, double b, double e, double e2, double eb2)
a
- semimajor radius of the ellipsoid axisb
- semiminor radius of the ellipsoid axise
- first eccentricity of the ellipsoid ( = sqrt((a*a - b*b)/(a*a)))e2
- first eccentricity squaredeb2
- square of the second eccentricityMethod Detail |
---|
public static Ellipsoid create_a_b(double a, double b)
a
- semimajor radius of the ellipsoid axis (in meters)b
- semiminor radius of the ellipsoid axis (in meters)public static Ellipsoid create_a_es(double a, double es)
a
- semimajor radius of the ellipsoid axis (in meters)es
- first eccentricity squaredpublic static Ellipsoid create_a_f(double a, double f)
a
- semimajor radius of the ellipsoid axis (in meters)f
- flattening ( = (a - b) / a)public static Ellipsoid create_a_rf(double a, double rf)
a
- semimajor radius of the ellipsoid axis (in meters)rf
- inverse flatteningpublic java.lang.String toString()
toString
in class java.lang.Object
public double verticalRadiusOfCurvature(double phi)
phi
- The local latitude (radians).
private static double sqr(double x)
public double meridionalArc(double phi)
phi
- The local latitude (in radians).
public double meridionalRadiusOfCurvature(double phi)
phi
- The local latitude (in radians).
public double latitudeIsometric(double phi, double e)
phi
- The local latitude (radians).
public double latitudeIsometric(double phi)
phi
- The local latitude (radians).
public double latitude(double latIso, double e, double epsilon)
public LatLon cart2LatLon(double[] XYZ)
XYZ
- the coordinates in meters (X, Y, Z)
public LatLon cart2LatLon(double[] XYZ, double epsilon)
public double[] latLon2Cart(LatLon coord)
coord
- The Latitude and longitude in degrees
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |