JScience v4.3

org.jscience.geography.coordinates.crs
Class CompoundCRS<C1 extends Coordinates<?>,C2 extends Coordinates<?>>

java.lang.Object
  extended by org.jscience.geography.coordinates.crs.CoordinateReferenceSystem<CompoundCoordinates<C1,C2>>
      extended by 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.

Version:
3.0, February 13, 2006
Author:
Jean-Marie Dautelle

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jscience.geography.coordinates.crs.CoordinateReferenceSystem
CoordinateReferenceSystem.AbsolutePosition
 
Field Summary
 
Fields inherited from interface org.opengis.referencing.ReferenceSystem
SCOPE_KEY, VALID_AREA_KEY
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
CompoundCRS(CoordinateReferenceSystem<C1> first, CoordinateReferenceSystem<C2> next)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class CoordinateReferenceSystem<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 class CoordinateReferenceSystem<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 interface org.opengis.referencing.crs.CoordinateReferenceSystem
Specified by:
getCoordinateSystem in class CoordinateReferenceSystem<CompoundCoordinates<C1 extends Coordinates<?>,C2 extends Coordinates<?>>>
Returns:
the corresponding coordinate system.

JScience v4.3

Copyright © 2006 JScience.