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