Enum DatumShiftMethod
- All Implemented Interfaces:
Serializable
,Comparable<DatumShiftMethod>
,java.lang.constant.Constable
The method to use for applying a datum shift.
Values are ordered from most accurate method to less accurate.
This enumeration does not include datum shift based on grid files.
- Since:
- 0.8
- Version:
- 0.8
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApproximation of Molodensky transformations, which is itself an approximation of geocentric translations.Transformation in geocentric domain (translation or position vector 7-parameters).Approximation of geocentric translations.No datum shift applied (not even a change of ellipsoid). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DatumShiftMethod
forAccuracy
(double desired) Suggests an operation method for the given accuracy.static DatumShiftMethod
Returns the enum constant of this type with the specified name.static DatumShiftMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GEOCENTRIC_DOMAIN
Transformation in geocentric domain (translation or position vector 7-parameters). -
MOLODENSKY
Approximation of geocentric translations. -
ABRIDGED_MOLODENSKY
Approximation of Molodensky transformations, which is itself an approximation of geocentric translations. -
NONE
No datum shift applied (not even a change of ellipsoid). This method should be used only when a coarse accuracy (at least 3 km) is sufficient.
-
-
Constructor Details
-
DatumShiftMethod
private DatumShiftMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forAccuracy
Suggests an operation method for the given accuracy. This method contains accuracy threshold (in metres) for allowing the use of Molodensky approximation instead of the Geocentric Translation method. The accuracy of datum shifts with Molodensky approximation is about 5 or 10 metres. However for this method, we are not interested in absolute accuracy but rather in the difference between Molodensky and Geocentric Translation methods, which is much lower (less than 1 m). We nevertheless use a relatively high threshold as a conservative approach.- Parameters:
desired
- desired accuracy on Earth (metres).- Returns:
- suggested datum shift method for an accuracy equals or better than the given value.
- See Also:
-