Package org.geolatte.geom.crs
Class Unit
- java.lang.Object
-
- org.geolatte.geom.crs.CrsIdentifiable
-
- org.geolatte.geom.crs.Unit
-
- Direct Known Subclasses:
AngularUnit,LinearUnit
public abstract class Unit extends CrsIdentifiable
Describes the units of aCoordinateSystemAxis.
-
-
Field Summary
Fields Modifier and Type Field Description static AngularUnitDEGREEstatic LinearUnitMETERstatic AngularUnitRADIANstatic AngularUnitUNKNOWN_Angularstatic LinearUnitUNKNOWN_LINEAR
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)doublegetConversionFactor()Returns the conversion factor: the scalar value that converts a value of thisUnitto the fundamental unit for this type of unit.abstract UnitgetFundamentalUnit()Returns the fundamental unit for this type ofUnit.inthashCode()abstract booleanisAngular()Returns true if thisUnitis angular.StringtoString()-
Methods inherited from class org.geolatte.geom.crs.CrsIdentifiable
getCrsId, getName
-
-
-
-
Field Detail
-
DEGREE
public static final AngularUnit DEGREE
-
RADIAN
public static final AngularUnit RADIAN
-
METER
public static final LinearUnit METER
-
UNKNOWN_LINEAR
public static final LinearUnit UNKNOWN_LINEAR
-
UNKNOWN_Angular
public static final AngularUnit UNKNOWN_Angular
-
-
Method Detail
-
getFundamentalUnit
public abstract Unit getFundamentalUnit()
Returns the fundamental unit for this type ofUnit.- Returns:
- Meter for linear, Radian for angular units.
-
getConversionFactor
public double getConversionFactor()
Returns the conversion factor: the scalar value that converts a value of thisUnitto the fundamental unit for this type of unit.- Returns:
-
isAngular
public abstract boolean isAngular()
Returns true if thisUnitis angular.- Returns:
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCrsIdentifiable
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCrsIdentifiable
-
-