org.cts.crs
Class CompoundCRS

java.lang.Object
  extended by org.cts.IdentifiableComponent
      extended by org.cts.crs.GeodeticCRS
          extended by org.cts.crs.CompoundCRS
All Implemented Interfaces:
CoordinateReferenceSystem, Identifiable

public class CompoundCRS
extends GeodeticCRS

A compound CoordinateReferenceSystem is a CoordinateReferenceSystem composed by two distinct CoordinateReferenceSystem : a GeodeticCRS for 2D horizontal coordinates and a VerticalCRS for the z coordinate.

Author:
Michaƫl Michaud, Jules Party

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cts.crs.CoordinateReferenceSystem
CoordinateReferenceSystem.Type
 
Field Summary
 
Fields inherited from class org.cts.crs.GeodeticCRS
coordinateSystem
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
CompoundCRS(Identifier identifier, GeodeticCRS horizontalCRS, VerticalCRS verticalCRS)
          Create a new GeodeticCRS.
 
Method Summary
 CoordinateOperation fromGeographicCoordinateConverter()
          Creates a CoordinateOperation object to convert coordinates from a GeographicReferenceSystem based on the same horizonal datum and vertical datum, and using normal SI units in the following order : latitude (rad), longitude (rad) height/altitude (m) to this CoordinateReferenceSystem.
 int getDimension()
          Returns the number of dimensions of the coordinate system.
 List<CoordinateOperation> getGridTransformations(GeodeticDatum datum)
          Return the list of nadgrids transformation defined for the horizontal CRS of this CompoundCRS that used the datum in parameter as target datum.
 GeodeticCRS getHorizontalCRS()
          Return the horizonal part of this CoordinateReferenceSystem.
 CoordinateReferenceSystem.Type getType()
          Return this CoordinateReferenceSystem Type.
 VerticalCRS getVerticalCRS()
          Return the vertical part of this CoordinateReferenceSystem.
 CoordinateOperation toGeographicCoordinateConverter()
          Creates a CoordinateOperation object to convert coordinates from this CoordinateReferenceSystem to a GeographicReferenceSystem based on the same horizonal datum and vertical datum, and using normal SI units in the following order : latitude (rad), longitude (rad) height/altitude (m).
 String toString()
          Return a String representation of this Datum.
 String toWKT()
          Returns a WKT representation of the compound CRS.
 
Methods inherited from class org.cts.crs.GeodeticCRS
addCRSTransformation, addGridTransformation, equals, getCoordinateSystem, getCRSTransformations, getCRSTransformations, getDatum, getGridTransformations, getProjection, hashCode, isValid
 
Methods inherited from class org.cts.IdentifiableComponent
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getComponent, getIdentifier, getName, getRemarks, getShortName, setIdentifier, setRemarks, setShortName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.cts.Identifiable
addAlias, addRemark, getAliases, getAuthorityKey, getAuthorityName, getCode, getName, getRemarks, getShortName, setRemarks, setShortName
 

Constructor Detail

CompoundCRS

public CompoundCRS(Identifier identifier,
                   GeodeticCRS horizontalCRS,
                   VerticalCRS verticalCRS)
            throws CRSException
Create a new GeodeticCRS.

Parameters:
identifier - the identifier of the CompoundCRS
horizontalCRS - the horizontal part of the CompoundCRS
verticalCRS - the vertical part of the CompoundCRS
Throws:
CRSException
Method Detail

getType

public CoordinateReferenceSystem.Type getType()
Return this CoordinateReferenceSystem Type.

Specified by:
getType in interface CoordinateReferenceSystem
Specified by:
getType in class GeodeticCRS
See Also:
CoordinateReferenceSystem.getType()

getHorizontalCRS

public GeodeticCRS getHorizontalCRS()
Return the horizonal part of this CoordinateReferenceSystem.


getVerticalCRS

public VerticalCRS getVerticalCRS()
Return the vertical part of this CoordinateReferenceSystem.


getDimension

public int getDimension()
Returns the number of dimensions of the coordinate system.

Overrides:
getDimension in class GeodeticCRS

getGridTransformations

public List<CoordinateOperation> getGridTransformations(GeodeticDatum datum)
Return the list of nadgrids transformation defined for the horizontal CRS of this CompoundCRS that used the datum in parameter as target datum.

Overrides:
getGridTransformations in class GeodeticCRS
Parameters:
datum - the datum that must be a target for returned nadgrid transformation

toGeographicCoordinateConverter

public CoordinateOperation toGeographicCoordinateConverter()
                                                    throws NonInvertibleOperationException
Creates a CoordinateOperation object to convert coordinates from this CoordinateReferenceSystem to a GeographicReferenceSystem based on the same horizonal datum and vertical datum, and using normal SI units in the following order : latitude (rad), longitude (rad) height/altitude (m).

Specified by:
toGeographicCoordinateConverter in class GeodeticCRS
Throws:
NonInvertibleOperationException

fromGeographicCoordinateConverter

public CoordinateOperation fromGeographicCoordinateConverter()
                                                      throws NonInvertibleOperationException
Creates a CoordinateOperation object to convert coordinates from a GeographicReferenceSystem based on the same horizonal datum and vertical datum, and using normal SI units in the following order : latitude (rad), longitude (rad) height/altitude (m) to this CoordinateReferenceSystem.

Specified by:
fromGeographicCoordinateConverter in class GeodeticCRS
Throws:
NonInvertibleOperationException

toWKT

public String toWKT()
Returns a WKT representation of the compound CRS.

Specified by:
toWKT in interface CoordinateReferenceSystem
Specified by:
toWKT in class GeodeticCRS

toString

public String toString()
Return a String representation of this Datum.

Overrides:
toString in class GeodeticCRS


Copyright © 2014 IRSTV CNRS-FR-2488. All Rights Reserved.