Class XYZ
java.lang.Object
org.jscience.geography.coordinates.Coordinates<GeocentricCRS<XYZ>>
org.jscience.geography.coordinates.XYZ
- All Implemented Interfaces:
Serializable,Cloneable,javolution.lang.Immutable,javolution.lang.Realtime,javolution.lang.ValueType,javolution.xml.XMLSerializable,org.opengis.spatialschema.geometry.DirectPosition,org.opengis.spatialschema.geometry.geometry.Position,org.opengis.util.Cloneable
This class represents the
geocentric Earth-Centered,
Earth-Fixed (ECEF) cartesian coordinates used in GPS/GLONASS.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeocentricCRS<XYZ>Holds the coordinate reference system for all instances of this class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a copy of these coordinatesallocatedby the calling thread (possibly on the stack).Returns the reference system for this coordinates.intOpenGIS® - The length of coordinate sequence (the number of entries).doublegetOrdinate(int dimension) OpenGIS® - Returns the ordinate at the specified dimension.Returns the x/y/z coordinates value as a 3-dimensional vector.static XYZReturns the spatial position corresponding to the specified coordinates.static XYZvalueOf(Float64Vector vector, Unit<Length> unit) Returns the spatial position corresponding to the specified 3-dimensional vector.doubleReturns the x coordinate value asdoubledoubleReturns the y coordinate value asdoubledoubleReturns the z coordinate value asdoubleMethods inherited from class org.jscience.geography.coordinates.Coordinates
clone, getCoordinates, getPosition, setOrdinate, toString, toText
-
Field Details
-
CRS
Holds the coordinate reference system for all instances of this class.
-
-
Method Details
-
valueOf
Returns the spatial position corresponding to the specified coordinates.- Parameters:
x- the x value stated in the specified unit.y- the y value stated in the specified unit.z- the z value stated in the specified unit.unit- the length unit in which the coordinates are stated.- Returns:
- the corresponding 3D position.
-
valueOf
Returns the spatial position corresponding to the specified 3-dimensional vector.- Parameters:
vector- the 3-dimensional vector holding the x/y/z coordinates.unit- the length unit in which the coordinates are stated.- Returns:
- the corresponding 3D position.
-
xValue
Returns the x coordinate value asdouble- Parameters:
unit- the length unit of the x coordinate value to return.- Returns:
- the x coordinate stated in the specified unit.
-
yValue
Returns the y coordinate value asdouble- Parameters:
unit- the length unit of the x coordinate value to return.- Returns:
- the z coordinate stated in the specified unit.
-
zValue
Returns the z coordinate value asdouble- Parameters:
unit- the length unit of the x coordinate value to return.- Returns:
- the z coordinate stated in the specified unit.
-
toVector
Returns the x/y/z coordinates value as a 3-dimensional vector.- Parameters:
unit- the length unit of the vector coordinates.- Returns:
- a vector holding the x/y/z coordinates stated in the specified unit.
-
getCoordinateReferenceSystem
Description copied from class:CoordinatesReturns the reference system for this coordinates.- Specified by:
getCoordinateReferenceSystemin interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
getCoordinateReferenceSystemin classCoordinates<GeocentricCRS<XYZ>>- Returns:
- the associated coordinate reference system.
-
getDimension
public int getDimension()Description copied from class:CoordinatesOpenGIS® - The length of coordinate sequence (the number of entries). This is determined by the coordinate reference system.- Specified by:
getDimensionin interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
getDimensionin classCoordinates<GeocentricCRS<XYZ>>- Returns:
- the dimensionality of this position.
-
getOrdinate
Description copied from class:CoordinatesOpenGIS® - Returns the ordinate at the specified dimension.- Specified by:
getOrdinatein interfaceorg.opengis.spatialschema.geometry.DirectPosition- Specified by:
getOrdinatein classCoordinates<GeocentricCRS<XYZ>>- Parameters:
dimension- The dimension in the range 0 to dimension-1.- Returns:
- The coordinate at the specified dimension.
- Throws:
IndexOutOfBoundsException- if the specified dimension is out of bounds.
-
copy
Description copied from class:CoordinatesReturns a copy of these coordinatesallocatedby the calling thread (possibly on the stack).- Specified by:
copyin interfacejavolution.lang.ValueType- Specified by:
copyin classCoordinates<GeocentricCRS<XYZ>>- Returns:
- an identical and independant copy of these coordinates .
-