Package org.opengis.test
Class Units
- Object
-
- PseudoFactory
-
- Units
-
- All Implemented Interfaces:
Factory
public class Units extends PseudoFactory
Pre-defined constants for the units of measurement used by the conformance tests. This pseudo-factory provides separated methods for all units needed bygeoapi-conformance
.- Since:
- 3.0.1
-
-
Constructor Summary
Constructors Constructor Description Units(SystemOfUnits system)
Creates a new factory which will use the given system of units.
-
Method Summary
Modifier and Type Method Description Unit<Angle>
arcSecond()
Unit of measurement defined as 1/(60×60) degree.Unit<Time>
day()
Unit of measurement defined as 24×60×60 seconds.Unit<Angle>
degree()
Unit of measurement defined as π/180 radians.Unit<Length>
foot()
Unit of measurement defined as 0.3048 metres.Unit<Length>
footSurveyUS()
Unit of measurement defined as 12/39.37 metres.static Units
getDefault()
Returns the default units factory.Unit<Angle>
grad()
Unit of measurement defined as π/200 radians.Unit<Pressure>
hectopascal()
Unit of measurement defined as 100 pascals.Unit<Length>
kilometre()
Unit of measurement defined as 1000 metres.Unit<Length>
metre()
Base unit of measurement for lengths.Unit<Angle>
microradian()
Unit of measurement defined as 1E-6 radians.Unit<Dimensionless>
one()
Dimensionless unit for scale measurements.Unit<Pressure>
pascal()
Base unit of measurement for pressure.Unit<Dimensionless>
ppm()
The "parts per million" unit.Unit<Angle>
radian()
Base unit of measurement for angle.Unit<Time>
second()
Base unit of measurement for durations.-
Methods inherited from class PseudoFactory
getVendor
-
-
-
-
Constructor Detail
-
Units
public Units(SystemOfUnits system)
Creates a new factory which will use the given system of units.- Parameters:
system
- the system of units to use for creating base units.
-
-
Method Detail
-
getDefault
public static Units getDefault()
Returns the default units factory. This factory uses the unit service provider which is current at the time of the first invocation of this method.- Returns:
- the default units factory.
-
metre
public Unit<Length> metre()
Base unit of measurement for lengths.
-
kilometre
public Unit<Length> kilometre()
Unit of measurement defined as 1000 metres.
-
foot
public Unit<Length> foot()
Unit of measurement defined as 0.3048 metres.
-
footSurveyUS
public Unit<Length> footSurveyUS()
Unit of measurement defined as 12/39.37 metres.
-
radian
public Unit<Angle> radian()
Base unit of measurement for angle.
-
microradian
public Unit<Angle> microradian()
Unit of measurement defined as 1E-6 radians.
-
degree
public Unit<Angle> degree()
Unit of measurement defined as π/180 radians.
-
grad
public Unit<Angle> grad()
Unit of measurement defined as π/200 radians.
-
arcSecond
public Unit<Angle> arcSecond()
Unit of measurement defined as 1/(60×60) degree.
-
second
public Unit<Time> second()
Base unit of measurement for durations.
-
day
public Unit<Time> day()
Unit of measurement defined as 24×60×60 seconds.
-
pascal
public Unit<Pressure> pascal()
Base unit of measurement for pressure.
-
hectopascal
public Unit<Pressure> hectopascal()
Unit of measurement defined as 100 pascals.
-
one
public Unit<Dimensionless> one()
Dimensionless unit for scale measurements.
-
ppm
public Unit<Dimensionless> ppm()
The "parts per million" unit.
-
-