org.cts.crs
Class Geographic2DCRS

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

public class Geographic2DCRS
extends GeodeticCRS

A Geographic CoordinateReferenceSystem is a reference system based on a GeodeticDatum and a 2D or 3D Ellipsoidal Coordinate System.

Author:
Michaƫl Michaud, Erwan Bocher

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cts.crs.CoordinateReferenceSystem
CoordinateReferenceSystem.Type
 
Field Summary
static CoordinateSystem LATLON_DD_CS
          A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude.
static CoordinateSystem LATLON_GG_CS
          A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude.
static CoordinateSystem LATLON_RR_CS
          A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude.
static CoordinateSystem LONLAT_DD_CS
          A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude.
static CoordinateSystem LONLAT_GG_CS
          A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude.
static CoordinateSystem LONLAT_RR_CS
          A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude.
 
Fields inherited from class org.cts.crs.GeodeticCRS
coordinateSystem
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
Geographic2DCRS(Identifier identifier, GeodeticDatum datum)
          Create a new Geographic2DCRS.
Geographic2DCRS(Identifier identifier, GeodeticDatum datum, CoordinateSystem coordSys)
          Create a new Geographic2DCRS.
Geographic2DCRS(Identifier identifier, GeodeticDatum datum, Unit unit)
          Create a new Geographic2DCRS.
 
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.
 Projection getProjection()
          Returns the Projection to which this CoordinateReferenceSystem is refering.
 CoordinateReferenceSystem.Type getType()
          Returns this CoordinateReferenceSystem Type.
 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 toWKT()
          Returns a WKT representation of the geographic 2D CRS.
 
Methods inherited from class org.cts.crs.GeodeticCRS
addCRSTransformation, addGridTransformation, equals, getCoordinateSystem, getCRSTransformations, getCRSTransformations, getDatum, getDimension, getGridTransformations, getGridTransformations, hashCode, isValid, toString
 
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
 

Field Detail

LATLON_RR_CS

public static CoordinateSystem LATLON_RR_CS
A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude. The unit used by these axes is radian.


LONLAT_RR_CS

public static CoordinateSystem LONLAT_RR_CS
A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude. The unit used by these axes is radian.


LATLON_DD_CS

public static CoordinateSystem LATLON_DD_CS
A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude. The unit used by these axes is decimal degree.


LONLAT_DD_CS

public static CoordinateSystem LONLAT_DD_CS
A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude. The unit used by these axes is decimal degree.


LATLON_GG_CS

public static CoordinateSystem LATLON_GG_CS
A 2D CoordinateSystem whose first Axis contains latitude and second Axis contains longitude. The unit used by these axes is grad.


LONLAT_GG_CS

public static CoordinateSystem LONLAT_GG_CS
A 2D CoordinateSystem whose first Axis contains longitude and second Axis contains latitude. The unit used by these axes is grad.

Constructor Detail

Geographic2DCRS

public Geographic2DCRS(Identifier identifier,
                       GeodeticDatum datum,
                       CoordinateSystem coordSys)
Create a new Geographic2DCRS.

Parameters:
identifier - the identifier of the Geographic2DCRS
datum - the datum associated with the Geographic2DCRS
coordSys - the coordinate system associated with the Geographic2DCRS

Geographic2DCRS

public Geographic2DCRS(Identifier identifier,
                       GeodeticDatum datum,
                       Unit unit)
Create a new Geographic2DCRS. The first Axis of the associated CoordinateSystem contains latitude and the second Axis contains longitude.

Parameters:
identifier - the identifier of the Geographic2DCRS
datum - the datum associated with the Geographic2DCRS
unit - the unit to use for the coordinate system associated with the Geographic2DCRS

Geographic2DCRS

public Geographic2DCRS(Identifier identifier,
                       GeodeticDatum datum)
Create a new Geographic2DCRS. The first Axis of the associated CoordinateSystem contains latitude and the second Axis contains longitude.

Parameters:
identifier - the identifier of the Geographic2DCRS
datum - the datum associated with the Geographic2DCRS
Method Detail

toGeographicCoordinateConverter

public CoordinateOperation toGeographicCoordinateConverter()
Description copied from class: GeodeticCRS
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
See Also:
GeodeticCRS.toGeographicCoordinateConverter()

fromGeographicCoordinateConverter

public CoordinateOperation fromGeographicCoordinateConverter()
Description copied from class: GeodeticCRS
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
See Also:
GeodeticCRS.fromGeographicCoordinateConverter()

getProjection

public Projection getProjection()
Description copied from interface: CoordinateReferenceSystem
Returns the Projection to which this CoordinateReferenceSystem is refering. It returns null if no projection is defined for this CRS.

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

getType

public CoordinateReferenceSystem.Type getType()
Description copied from interface: CoordinateReferenceSystem
Returns this CoordinateReferenceSystem Type.

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

toWKT

public String toWKT()
Returns a WKT representation of the geographic 2D CRS.

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


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