| org.geotools.measure.SexagesimalConverter
SexagesimalConverter | class SexagesimalConverter extends Converter (Code) | | A converter from fractional degrees to sexagesimal degrees.
Sexagesimal degrees are pseudo-unit in the format
sign - degrees - decimal point - minutes (two digits) - integer seconds (two digits) -
fraction of seconds (any precision).
Unfortunatly, this pseudo-unit is extensively used in the EPSG database.
since: 2.1 version: $Id: SexagesimalConverter.java 22482 2006-10-31 02:58:00Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
final int | divider The value to divide DMS unit by. |
Constructor Summary | |
public | SexagesimalConverter(int divider) Constructs a converter for sexagesimal units. |
Method Summary | |
public double | convert(double value) Performs a conversion from fractional degrees to sexagesimal degrees. | final public double | derivative(double x) Returns this converter derivative for the specified
x value. | final public boolean | equals(Object object) Compares this converter with the specified object. | public int | hashCode() Returns a hash value for this converter. | final public Converter | inverse() Returns the inverse of this converter. | final public boolean | isLinear() Returns
false since this converter is non-linear. |
divider | final int divider(Code) | | The value to divide DMS unit by.
For "degree minute second" (EPSG code 9107), this is 1.
For "sexagesimal degree" (EPSG code 9110), this is 10000.
|
SexagesimalConverter | public SexagesimalConverter(int divider)(Code) | | Constructs a converter for sexagesimal units.
Parameters: divider - The value to divide DMS unit by.For "degree minute second" (EPSG code 9107), this is 1.For "sexagesimal degree" (EPSG code 9110), this is 10000. |
convert | public double convert(double value) throws ConversionException(Code) | | Performs a conversion from fractional degrees to sexagesimal degrees.
|
derivative | final public double derivative(double x)(Code) | | Returns this converter derivative for the specified
x value.
|
equals | final public boolean equals(Object object)(Code) | | Compares this converter with the specified object.
|
hashCode | public int hashCode()(Code) | | Returns a hash value for this converter.
|
inverse | final public Converter inverse()(Code) | | Returns the inverse of this converter.
|
isLinear | final public boolean isLinear()(Code) | | Returns
false since this converter is non-linear.
|
|
|