Class Axis
java.lang.Object
org.locationtech.proj4j.geoapi.Wrapper
org.locationtech.proj4j.geoapi.Axis
- All Implemented Interfaces:
Serializable, org.opengis.metadata.Identifier, org.opengis.referencing.cs.CoordinateSystemAxis, org.opengis.referencing.IdentifiedObject, org.opengis.referencing.ReferenceIdentifier
final class Axis
extends Wrapper
implements org.opengis.referencing.cs.CoordinateSystemAxis, Serializable
A coordinate system axis.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe coordinate system axis abbreviation.private final booleanWhether the unit of measurement is degrees or metres.private final byteThe axis direction: 1=east, 2=north, 3=up.private static final org.opengis.referencing.cs.AxisDirection[]The axis directions in the order declared in theGEOGRAPHICandPROJECTEDarrays.(package private) static final Axis[]The axes for a geographic or projected CRS.(package private) static final intIndex of the axis having the east direction inGEOGRAPHICandPROJECTEDarrays.private final StringThe coordinate system axis name.(package private) static final Axis[]The axes for a geographic or projected CRS.private javax.measure.Unit<?> Unit of measurement, cached when first requested.private final doubleThe scale factor to apply on unit of measurement.Fields inherited from class Wrapper
BIDIMENSIONAL, TRIDIMENSIONALFields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface org.opengis.metadata.Identifier
AUTHORITY_KEY, CODE_KEYFields inherited from interface org.opengis.referencing.ReferenceIdentifier
CODESPACE_KEY, VERSION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the axis abbreviation.getCode()Returns the axis name.org.opengis.referencing.cs.AxisDirectiondoubledoubleorg.opengis.referencing.cs.RangeMeaningjavax.measure.Unit<?> getUnit()(package private) ObjectReturns an arbitrary value suitable for string representation.(package private) final AxiswithUnit(double scale) Returns the same axis but with a unit of measurement multiplied by the given scale.Methods inherited from class Wrapper
equals, getAlias, getAuthority, getCodeSpace, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, getVersion, hashCode, toString, toWKTMethods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
GEOGRAPHIC
-
PROJECTED
-
DIRECTIONS
private static final org.opengis.referencing.cs.AxisDirection[] DIRECTIONSThe axis directions in the order declared in theGEOGRAPHICandPROJECTEDarrays. -
INDEX_OF_EAST
static final int INDEX_OF_EASTIndex of the axis having the east direction inGEOGRAPHICandPROJECTEDarrays.- See Also:
-
name
The coordinate system axis name. -
abbreviation
The coordinate system axis abbreviation. -
direction
private final byte directionThe axis direction: 1=east, 2=north, 3=up. The value may be negative for the opposite direction. -
angular
private final boolean angularWhether the unit of measurement is degrees or metres. -
unitScale
private final double unitScaleThe scale factor to apply on unit of measurement. For angular units, the base unit is degree, not radian. -
unit
private transient javax.measure.Unit<?> unitUnit of measurement, cached when first requested.
-
-
Constructor Details
-
Axis
Creates a new axis.- Parameters:
name- the coordinate system axis nameabbreviation- the coordinate system axis abbreviationangular- whether the unit of measurement is degrees or metres.unitScale- the scale factor to apply on unit of measurement.north- whether the axis is oriented toward north or east.
-
-
Method Details
-
withUnit
Returns the same axis but with a unit of measurement multiplied by the given scale. -
implementation
Object implementation()Returns an arbitrary value suitable for string representation..- Specified by:
implementationin classWrapper- Returns:
- an arbitrary value suitable for string representation
-
getCode
-
getAbbreviation
Returns the axis abbreviation..- Specified by:
getAbbreviationin interfaceorg.opengis.referencing.cs.CoordinateSystemAxis- Returns:
- the axis abbreviation
-
getDirection
public org.opengis.referencing.cs.AxisDirection getDirection()- Specified by:
getDirectionin interfaceorg.opengis.referencing.cs.CoordinateSystemAxis
-
getMinimumValue
public double getMinimumValue()- Specified by:
getMinimumValuein interfaceorg.opengis.referencing.cs.CoordinateSystemAxis
-
getMaximumValue
public double getMaximumValue()- Specified by:
getMaximumValuein interfaceorg.opengis.referencing.cs.CoordinateSystemAxis
-
getRangeMeaning
public org.opengis.referencing.cs.RangeMeaning getRangeMeaning()- Specified by:
getRangeMeaningin interfaceorg.opengis.referencing.cs.CoordinateSystemAxis
-
getUnit
public javax.measure.Unit<?> getUnit()- Specified by:
getUnitin interfaceorg.opengis.referencing.cs.CoordinateSystemAxis
-