Class CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>
- java.lang.Object
-
- org.jscience.geography.coordinates.crs.CoordinateReferenceSystem<CompoundCoordinates<C1,C2>>
-
- org.jscience.geography.coordinates.crs.CompoundCRS<C1,C2>
-
- All Implemented Interfaces:
org.opengis.referencing.crs.CoordinateReferenceSystem
,org.opengis.referencing.IdentifiedObject
,org.opengis.referencing.ReferenceSystem
public class CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>> extends CoordinateReferenceSystem<CompoundCoordinates<C1,C2>>
This class represents a coordinate reference system combining two or more distinct reference systems.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jscience.geography.coordinates.crs.CoordinateReferenceSystem
CoordinateReferenceSystem.AbsolutePosition
-
-
Constructor Summary
Constructors Constructor Description CompoundCRS(CoordinateReferenceSystem<C1> first, CoordinateReferenceSystem<C2> next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CompoundCoordinates<C1,C2>
coordinatesOf(CoordinateReferenceSystem.AbsolutePosition position)
Returns the coordinates in this reference system of the specified absolute position.org.opengis.referencing.cs.CoordinateSystem
getCoordinateSystem()
Returns the OpenGIS coordinate system associated to this coordinate reference system.protected CoordinateReferenceSystem.AbsolutePosition
positionOf(CompoundCoordinates<C1,C2> coordinates, CoordinateReferenceSystem.AbsolutePosition position)
Returns the absolute position from the coordinates in this reference system.-
Methods inherited from class org.jscience.geography.coordinates.crs.CoordinateReferenceSystem
getAlias, getConverterTo, getIdentifiers, getName, getRemarks, getScope, getValidArea, toWKT
-
-
-
-
Constructor Detail
-
CompoundCRS
public CompoundCRS(CoordinateReferenceSystem<C1> first, CoordinateReferenceSystem<C2> next)
-
-
Method Detail
-
coordinatesOf
protected CompoundCoordinates<C1,C2> coordinatesOf(CoordinateReferenceSystem.AbsolutePosition position)
Description copied from class:CoordinateReferenceSystem
Returns the coordinates in this reference system of the specified absolute position.- Specified by:
coordinatesOf
in classCoordinateReferenceSystem<CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
- Parameters:
position
- the absolute position for which the coordinates in this reference system is returned.- Returns:
- the coordinates for the specified absolute position.
-
positionOf
protected CoordinateReferenceSystem.AbsolutePosition positionOf(CompoundCoordinates<C1,C2> coordinates, CoordinateReferenceSystem.AbsolutePosition position)
Description copied from class:CoordinateReferenceSystem
Returns the absolute position from the coordinates in this reference system. This update may require information already supplied by the position. For example, the height for a pressure altitude might depends upon the latitude/longitude and the time.- Specified by:
positionOf
in classCoordinateReferenceSystem<CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
- Parameters:
coordinates
- the coordinates for which the absolute position is adjusted.position
- the position object to update.- Returns:
- the corresponding absolute position.
-
getCoordinateSystem
public org.opengis.referencing.cs.CoordinateSystem getCoordinateSystem()
Description copied from class:CoordinateReferenceSystem
Returns the OpenGIS coordinate system associated to this coordinate reference system.- Specified by:
getCoordinateSystem
in interfaceorg.opengis.referencing.crs.CoordinateReferenceSystem
- Specified by:
getCoordinateSystem
in classCoordinateReferenceSystem<CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
- Returns:
- the corresponding coordinate system.
-
-