|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.cs.CRSIdentifiable
org.deegree.cs.coordinatesystems.CoordinateSystem
public abstract class CoordinateSystem
Three kinds of CoordinateSystem
s (in this class abbreviated with CRS) are supported in this lib.
Nested Class Summary | |
---|---|
static class |
CoordinateSystem.CRSType
Simple enum defining the currently known Coordinate System types. |
Constructor Summary | |
---|---|
CoordinateSystem(Datum datum,
Axis[] axisOrder,
CRSCodeType[] codes,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
|
|
CoordinateSystem(Datum datum,
Axis[] axisOrder,
CRSIdentifiable identity)
|
|
CoordinateSystem(java.util.List<Transformation> transformations,
Datum datum,
Axis[] axisOrder,
CRSIdentifiable identity)
|
Method Summary | |
---|---|
javax.vecmath.Point3d |
convertToAxis(javax.vecmath.Point3d coordinates,
Unit[] units,
boolean invert)
Converts the given coordinates in given to the unit of the respective axis. |
boolean |
equals(java.lang.Object other)
|
Axis[] |
getAxis()
|
Datum |
getDatum()
|
abstract int |
getDimension()
|
Transformation |
getDirectTransformation(CoordinateSystem targetCRS)
|
int |
getEasting()
Return the axis index associated with an easting value, if the axis could not be determined Axis.AO_OTHER
0 will be returned. |
GeodeticDatum |
getGeodeticDatum()
|
int |
getNorthing()
Return the axis index associated with a northing value, if the axis could not be determined (e.g not is Axis.AO_NORTH Axis.AO_SOUTH or Axis.AO_UP or Axis.AO_DOWN ) 1 will be returned. |
java.util.List<Transformation> |
getTransformations()
|
abstract CoordinateSystem.CRSType |
getType()
|
protected java.lang.String |
getTypeName()
Helper function to get the typename as a String. |
Unit[] |
getUnits()
|
double[] |
getValidDomain()
Returns the approximate domain of validity of this coordinate system. |
boolean |
hasDirectTransformation(CoordinateSystem targetCRS)
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
java.lang.String |
toString()
|
Methods inherited from class org.deegree.cs.CRSIdentifiable |
---|
addAreaOfUse, addName, checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CoordinateSystem(Datum datum, Axis[] axisOrder, CRSIdentifiable identity)
datum
- of this coordinate system.axisOrder
- the axisorder of this coordinate system.identity
- public CoordinateSystem(Datum datum, Axis[] axisOrder, CRSCodeType[] codes, java.lang.String[] names, java.lang.String[] versions, java.lang.String[] descriptions, java.lang.String[] areasOfUse)
datum
- of this coordinate system.axisOrder
- the axisorder of this coordinate system.codes
- of this coordinate system.names
- versions
- descriptions
- areasOfUse
- public CoordinateSystem(java.util.List<Transformation> transformations, Datum datum, Axis[] axisOrder, CRSIdentifiable identity)
transformations
- to use instead of the helmert transformation(s).datum
- of this crsaxisOrder
- identity
- Method Detail |
---|
public Axis[] getAxis()
public final GeodeticDatum getGeodeticDatum()
null
if the datum was not a Geodetic one.public final Datum getDatum()
public Unit[] getUnits()
public abstract int getDimension()
public abstract CoordinateSystem.CRSType getType()
public boolean hasDirectTransformation(CoordinateSystem targetCRS)
targetCRS
- to get the alternative Transformation for.
public Transformation getDirectTransformation(CoordinateSystem targetCRS)
targetCRS
- to get the alternative transformation for.
null
otherwise.public javax.vecmath.Point3d convertToAxis(javax.vecmath.Point3d coordinates, Unit[] units, boolean invert)
coordinates
- to convert to.units
- in which the coordinates were given.invert
- if the operation should be inverted, e.g. the coordinates are given in the axis units and should be
converted to the given units.
protected java.lang.String getTypeName()
public boolean equals(java.lang.Object other)
equals
in class CRSIdentifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class CRSIdentifiable
Object.hashCode()
public java.lang.String toString()
toString
in class CRSIdentifiable
public final java.util.List<Transformation> getTransformations()
public int getEasting()
Axis.AO_OTHER
0 will be returned.
public int getNorthing()
Axis.AO_NORTH
Axis.AO_SOUTH
or Axis.AO_UP
or Axis.AO_DOWN
) 1 will be returned.
public double[] getValidDomain()
null
if the valid
domain could not be determined
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |