org.cts.crs
Class ProjectedCRS

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

public class ProjectedCRS
extends GeodeticCRS

A Projected CoordinateReferenceSystem is a CoordinateReferenceSystem based on a GeodeticDatum and a Projection operation.

Author:
Michaƫl Michaud

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.cts.crs.CoordinateReferenceSystem
CoordinateReferenceSystem.Type
 
Field Summary
static CoordinateSystem EN_CS
          A 2D CoordinateSystem whose first Axis contains easting and second Axis contains northing.
static CoordinateSystem NE_CS
          A 2D CoordinateSystem whose first Axis contains northing and second Axis contains easting.
 
Fields inherited from class org.cts.crs.GeodeticCRS
coordinateSystem
 
Fields inherited from interface org.cts.Identifiable
DEFAULT, LOCAL, UNKNOWN
 
Constructor Summary
ProjectedCRS(Identifier identifier, GeodeticDatum datum, CoordinateSystem coordSys, Projection projection)
          Create a new ProjectedCRS.
ProjectedCRS(Identifier identifier, GeodeticDatum datum, Projection projection)
          Create a new ProjectedCRS.
ProjectedCRS(Identifier identifier, GeodeticDatum datum, Projection projection, Unit unit)
          Create a new ProjectedCRS.
 
Method Summary
 boolean equals(Object o)
          Returns true if object is equals to this.
 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.
 int hashCode()
          Returns the hash code for this ProjectedCRS.
 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 projected CRS.
 
Methods inherited from class org.cts.crs.GeodeticCRS
addCRSTransformation, addGridTransformation, getCoordinateSystem, getCRSTransformations, getCRSTransformations, getDatum, getDimension, getGridTransformations, getGridTransformations, 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

EN_CS

public static CoordinateSystem EN_CS
A 2D CoordinateSystem whose first Axis contains easting and second Axis contains northing. The unit used by these axes is meter.


NE_CS

public static CoordinateSystem NE_CS
A 2D CoordinateSystem whose first Axis contains northing and second Axis contains easting. The unit used by these axes is meter.

Constructor Detail

ProjectedCRS

public ProjectedCRS(Identifier identifier,
                    GeodeticDatum datum,
                    CoordinateSystem coordSys,
                    Projection projection)
Create a new ProjectedCRS.

Parameters:
identifier - the identifier of the ProjectedCRS
datum - the datum associated with the ProjectedCRS
coordSys - the coordinate system associated with the ProjectedCRS
projection - the projection used in the ProjectedCRS

ProjectedCRS

public ProjectedCRS(Identifier identifier,
                    GeodeticDatum datum,
                    Projection projection,
                    Unit unit)
Create a new ProjectedCRS. The first Axis of the associated CoordinateSystem contains easting and the second Axis contains northing.

Parameters:
identifier - the identifier of the ProjectedCRS
datum - the datum associated with the ProjectedCRS
projection - the projection used in the ProjectedCRS
unit - the length unit to use for the coordinate system associated with the ProjectedCRS

ProjectedCRS

public ProjectedCRS(Identifier identifier,
                    GeodeticDatum datum,
                    Projection projection)
Create a new ProjectedCRS. The first Axis of the associated CoordinateSystem contains easting and the second Axis contains northing.

Parameters:
identifier - the identifier of the ProjectedCRS
datum - the datum associated with the ProjectedCRS
projection - the projection used in the ProjectedCRS
Method Detail

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()

toGeographicCoordinateConverter

public CoordinateOperation toGeographicCoordinateConverter()
                                                    throws NonInvertibleOperationException
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
Throws:
NonInvertibleOperationException
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()

toWKT

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

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

equals

public boolean equals(Object o)
Returns true if object is equals to this. Tests equality between identifiers, then tests if the components of this ProjectedCRS are equals : the grids transformations, the GeodeticDatum, the CoordinateSystem and the Projection.

Overrides:
equals in class GeodeticCRS
Parameters:
object - The object to compare this ProjectedCRS against

hashCode

public int hashCode()
Returns the hash code for this ProjectedCRS.

Overrides:
hashCode in class GeodeticCRS


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