Class Ellipsoid
java.lang.Object
org.openstreetmap.josm.data.projection.Ellipsoid
Reference ellipsoids.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublehalf long axisstatic final EllipsoidAiry 1830static final EllipsoidModified Airy 1849static final EllipsoidAustralian National Spheroid (Australian Natl & S.final doublehalf short axisstatic final EllipsoidBessel 1841 ellipsoidstatic final EllipsoidBessel 1841 (Namibia)static final EllipsoidClarke 1866 ellipsoidstatic final EllipsoidClarke 1880 (modified)static final EllipsoidClarke 1880 IGN (French national geographic institute)final doublefirst eccentricity: sqrt(a*a - b*b) / afinal doublefirst eccentricity squared: (a*a - b*b) / (a*a)final doublesquare of the second eccentricity: (a*a - b*b) / (b*b)static final EllipsoidEverest 1830static final EllipsoidEverest 1948static final EllipsoidEverest 1956static final EllipsoidEverest 1969static final EllipsoidEverest (Sabah & Sarawak)static final EllipsoidFischer (Mercury Datum) 1960static final EllipsoidFischer 1968static final EllipsoidModified Fischer 1960static final EllipsoidGRS67 ellipsoidstatic final EllipsoidGRS80 ellipsoidstatic final EllipsoidHayford's ellipsoid 1909 (ED50 system) Also known as International 1924 Proj.4 code: intlstatic final EllipsoidHelmert 1906static final EllipsoidHoughstatic final EllipsoidKrassowsky 1940 ellipsoidstatic final EllipsoidSpherefinal booleanif ellipsoid is spherical, i.e. the major and minor semiaxis are the samestatic final EllipsoidWalbeckstatic final EllipsoidWGS66 ellipsoidstatic final EllipsoidWGS72 ellipsoidstatic final EllipsoidWGS84 ellipsoid -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEllipsoid(double a, double b, double e, double e2, double eb2, boolean sperical) private constructur - use one of the create_* methods -
Method Summary
Modifier and TypeMethodDescriptioncart2LatLon(double... xyz) convert cartesian coordinates to ellipsoidal coordinatescart2LatLon(double[] xyz, double epsilon) static EllipsoidcreateAb(double a, double b) create a new ellipsoidstatic EllipsoidcreateAes(double a, double es) create a new ellipsoidstatic EllipsoidcreateAf(double a, double f) create a new ellipsoidstatic EllipsoidcreateArf(double a, double rf) create a new ellipsoiddoublelatitude(double latIso, double e, double epsilon) Returns geographic latitude of isometric latitude of first eccentricity (e) and epsilon precisiondoublelatitudeIsometric(double phi) Returns isometric latitude of phi on first eccentricity (e)doublelatitudeIsometric(double phi, double e) Returns isometric latitude of phi on given first eccentricity (e)double[]latLon2Cart(LatLon coord) convert ellipsoidal coordinates to cartesian coordinatesdoublemeridionalArc(double phi) Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude, in meters.doublemeridionalRadiusOfCurvature(double phi) Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.private static doublesqr(double x) toString()doubleverticalRadiusOfCurvature(double phi) Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.
-
Field Details
-
Airy
Airy 1830 -
AiryMod
Modified Airy 1849 -
AustSA
Australian National Spheroid (Australian Natl & S. Amer. 1969) same as GRS67 Modified -
Bessel1841
Bessel 1841 ellipsoid -
BesselNamibia
Bessel 1841 (Namibia) -
Clarke1866
Clarke 1866 ellipsoid -
Clarke1880
Clarke 1880 (modified) -
ClarkeIGN
Clarke 1880 IGN (French national geographic institute) -
Everest
Everest 1830 -
Everest1948
Everest 1948 -
Everest1956
Everest 1956 -
Everest1969
Everest 1969 -
EverestSabahSarawak
Everest (Sabah & Sarawak) -
Fischer
Fischer (Mercury Datum) 1960 -
FischerMod
Modified Fischer 1960 -
Fischer1968
Fischer 1968 -
GRS67
GRS67 ellipsoid -
GRS80
GRS80 ellipsoid -
Hayford
Hayford's ellipsoid 1909 (ED50 system) Also known as International 1924 Proj.4 code: intl -
Helmert
Helmert 1906 -
Hough
Hough -
Krassowsky
Krassowsky 1940 ellipsoid -
Sphere
Sphere -
Walbeck
Walbeck -
WGS66
WGS66 ellipsoid -
WGS72
WGS72 ellipsoid -
WGS84
WGS84 ellipsoid -
a
half long axis -
b
half short axis -
e
first eccentricity: sqrt(a*a - b*b) / a -
e2
first eccentricity squared: (a*a - b*b) / (a*a) -
eb2
square of the second eccentricity: (a*a - b*b) / (b*b) -
spherical
if ellipsoid is spherical, i.e. the major and minor semiaxis are the same
-
-
Constructor Details
-
Ellipsoid
private constructur - use one of the create_* methods- Parameters:
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 eccentricitysperical- if the ellipsoid is sphere
-
-
Method Details
-
createAb
create a new ellipsoid- Parameters:
a- semimajor radius of the ellipsoid axis (in meters)b- semiminor radius of the ellipsoid axis (in meters)- Returns:
- the new ellipsoid
-
createAes
create a new ellipsoid- Parameters:
a- semimajor radius of the ellipsoid axis (in meters)es- first eccentricity squared- Returns:
- the new ellipsoid
-
createAf
create a new ellipsoid- Parameters:
a- semimajor radius of the ellipsoid axis (in meters)f- flattening ( = (a - b) / a)- Returns:
- the new ellipsoid
-
createArf
create a new ellipsoid- Parameters:
a- semimajor radius of the ellipsoid axis (in meters)rf- inverse flattening- Returns:
- the new ellipsoid
-
toString
-
verticalRadiusOfCurvature
Returns the radius of curvature in the prime vertical for this reference ellipsoid at the specified latitude.- Parameters:
phi- The local latitude (radians).- Returns:
- The radius of curvature in the prime vertical (meters).
-
sqr
-
meridionalArc
Returns the meridional arc, the true meridional distance on the ellipsoid from the equator to the specified latitude, in meters.- Parameters:
phi- The local latitude (in radians).- Returns:
- The meridional arc (in meters).
-
meridionalRadiusOfCurvature
Returns the radius of curvature in the meridian for this reference ellipsoid at the specified latitude.- Parameters:
phi- The local latitude (in radians).- Returns:
- The radius of curvature in the meridian (in meters).
-
latitudeIsometric
Returns isometric latitude of phi on given first eccentricity (e)- Parameters:
phi- The local latitude (radians).e- first eccentricity- Returns:
- isometric latitude of phi on first eccentricity (e)
-
latitudeIsometric
Returns isometric latitude of phi on first eccentricity (e)- Parameters:
phi- The local latitude (radians).- Returns:
- isometric latitude of phi on first eccentricity (e)
-
latitude
Returns geographic latitude of isometric latitude of first eccentricity (e) and epsilon precision- Parameters:
latIso- isometric latitudee- first eccentricityepsilon- epsilon precision- Returns:
- geographic latitude of isometric latitude of first eccentricity (e) and epsilon precision
-
cart2LatLon
convert cartesian coordinates to ellipsoidal coordinates- Parameters:
xyz- the coordinates in meters (X, Y, Z)- Returns:
- The corresponding latitude and longitude in degrees
-
cart2LatLon
-
latLon2Cart
convert ellipsoidal coordinates to cartesian coordinates- Parameters:
coord- The Latitude and longitude in degrees- Returns:
- the corresponding (X, Y Z) cartesian coordinates in meters.
-