|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cts.IdentifiableComponent
org.cts.crs.GeodeticCRS
public abstract class GeodeticCRS
A geodetic CoordinateReferenceSystem is a coordinate
system based on a GeodeticDatum, a
PrimeMeridian and an org.cts.Ellipsoid. It is
an abstract class including Geographic3D, Geographic2D and Projected
CoordinateReferenceSystems.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cts.crs.CoordinateReferenceSystem |
|---|
CoordinateReferenceSystem.Type |
| Field Summary | |
|---|---|
protected CoordinateSystem |
coordinateSystem
The CoordinateSystem used by this
CoordinateReferenceSystem. |
| Fields inherited from interface org.cts.Identifiable |
|---|
DEFAULT, LOCAL, UNKNOWN |
| Constructor Summary | |
|---|---|
protected |
GeodeticCRS(Identifier identifier,
GeodeticDatum datum,
CoordinateSystem coordinateSystem)
Create a new GeodeticCRS. |
| Method Summary | |
|---|---|
void |
addCRSTransformation(CoordinateReferenceSystem crs,
List<CoordinateOperation> opList)
Add a transformation for this CRS to the CRS in parameter. |
void |
addGridTransformation(GeodeticDatum gd,
CoordinateOperation coordOp)
Add a Nadgrids Transformation for this CRS to the CRS using the key GeodeticDatum. |
boolean |
equals(Object o)
Returns true if object is equals to this. |
abstract 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. |
CoordinateSystem |
getCoordinateSystem()
Returns the CoordinateSystem used by this
CoordinateReferenceSystem. |
Map<CoordinateReferenceSystem,List<CoordinateOperation>> |
getCRSTransformations()
Return the list of nadgrids transformations defined for this CRS. |
List<CoordinateOperation> |
getCRSTransformations(CoordinateReferenceSystem crs)
Return the list of transformations defined for this CRS to the CRS in parameter. |
GeodeticDatum |
getDatum()
Returns the Datum to which this
CoordinateReferenceSystem is refering. |
int |
getDimension()
Returns the number of dimensions of the CoordinateSystem used by
this
CoordinateReferenceSystem. |
Map<GeodeticDatum,List<CoordinateOperation>> |
getGridTransformations()
Return the list of nadgrids transformation defined for this CRS. |
List<CoordinateOperation> |
getGridTransformations(GeodeticDatum datum)
Return the list of nadgrids transformation defined for this CRS that used the datum in parameter as target datum. |
Projection |
getProjection()
Returns the Projection to which this
CoordinateReferenceSystem is refering. |
abstract CoordinateReferenceSystem.Type |
getType()
Returns this CoordinateReferenceSystem Type. |
int |
hashCode()
Returns the hash code for this GeodeticCRS. |
boolean |
isValid(double[] coord)
Return whether this coord is a valid coord in this CoordinateReferenceSystem. |
abstract 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. |
abstract String |
toWKT()
Returns a WKT representation of the geodetic CRS. |
| 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 |
|---|
protected CoordinateSystem coordinateSystem
CoordinateSystem used by this
CoordinateReferenceSystem.
| Constructor Detail |
|---|
protected GeodeticCRS(Identifier identifier,
GeodeticDatum datum,
CoordinateSystem coordinateSystem)
identifier - the identifier of the GeodeticCRSdatum - the datum associated with the GeodeticCRScoordSys - the coordinate system associated with the GeodeticCRS| Method Detail |
|---|
public Projection getProjection()
CoordinateReferenceSystemProjection to which this
CoordinateReferenceSystem is refering. It returns null if no
projection is defined for this CRS.
getProjection in interface CoordinateReferenceSystemCoordinateReferenceSystem.getProjection()public abstract CoordinateReferenceSystem.Type getType()
CoordinateReferenceSystem
getType in interface CoordinateReferenceSystemCoordinateReferenceSystem.getType()public CoordinateSystem getCoordinateSystem()
CoordinateReferenceSystemCoordinateSystem used by this
CoordinateReferenceSystem.
getCoordinateSystem in interface CoordinateReferenceSystemCoordinateReferenceSystem.getCoordinateSystem()public int getDimension()
CoordinateSystem used by
this
CoordinateReferenceSystem.
public GeodeticDatum getDatum()
Datum to which this
CoordinateReferenceSystem is refering.
getDatum in interface CoordinateReferenceSystempublic boolean isValid(double[] coord)
coord - standard coordinate for this CoordinateReferenceSystem
datums (ex. decimal degrees for geographic datums and meters for vertical
datums).
public void addGridTransformation(GeodeticDatum gd,
CoordinateOperation coordOp)
GeodeticDatum.
gd - the target GeodeticDatum of the nadgrid transformation to addcoordOp - the transformation linking this CRS and the target
gdpublic Map<GeodeticDatum,List<CoordinateOperation>> getGridTransformations()
public List<CoordinateOperation> getGridTransformations(GeodeticDatum datum)
datum - the datum that must be a target for returned nadgrid
transformation
public void addCRSTransformation(CoordinateReferenceSystem crs,
List<CoordinateOperation> opList)
crs - the target crs of the transformation to addopList - the list of operations linking this and
crspublic Map<CoordinateReferenceSystem,List<CoordinateOperation>> getCRSTransformations()
public List<CoordinateOperation> getCRSTransformations(CoordinateReferenceSystem crs)
crs - the crs that must be a target for returned list of operations
public abstract CoordinateOperation toGeographicCoordinateConverter()
throws NonInvertibleOperationException
NonInvertibleOperationException
public abstract CoordinateOperation fromGeographicCoordinateConverter()
throws NonInvertibleOperationException
NonInvertibleOperationExceptionpublic abstract String toWKT()
toWKT in interface CoordinateReferenceSystempublic String toString()
toString in class IdentifiableComponentpublic boolean equals(Object o)
this. Tests equality between identifiers, then tests if the
components of this ProjectedCRS are equals : the grids transformations,
the GeodeticDatum, the CoordinateSystem.
equals in class IdentifiableComponentobject - The object to compare this GeodeticCRS againstpublic int hashCode()
hashCode in class IdentifiableComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||