|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable org.deegree.crs.coordinatesystems.CoordinateSystem
public abstract class CoordinateSystem
Three kinds of CoordinateSystem
s (in this class abbreviated with CRS) are supported in this lib.
Field Summary | |
---|---|
static int |
COMPOUND_CRS
Defines this CRS as a Compound one. |
static int |
GEOCENTRIC_CRS
Defines this CRS as a GeoCentric one. |
static int |
GEOGRAPHIC_CRS
Defines this CRS as a Geographic one. |
static int |
PROJECTED_CRS
Defines this CRS as a Projected one. |
static int |
VERTICAL_CRS
Defines this CRS as a Vertical one. |
Constructor Summary | |
---|---|
CoordinateSystem(Datum datum,
Axis[] axisOrder,
Identifiable identity)
|
|
CoordinateSystem(Datum datum,
Axis[] axisOrder,
java.lang.String[] identifiers,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
|
|
CoordinateSystem(java.util.List<PolynomialTransformation> transformations,
Datum geodeticDatum,
Axis[] axisOrder,
Identifiable 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()
|
PolynomialTransformation |
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<PolynomialTransformation> |
getTransformations()
|
abstract int |
getType()
|
protected java.lang.String |
getTypeName()
Helper function to get the typename as a String. |
Unit[] |
getUnits()
|
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.crs.Identifiable |
---|
checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GEOCENTRIC_CRS
public static final int GEOGRAPHIC_CRS
public static final int PROJECTED_CRS
public static final int COMPOUND_CRS
public static final int VERTICAL_CRS
Constructor Detail |
---|
public CoordinateSystem(Datum datum, Axis[] axisOrder, Identifiable identity)
datum
- of this coordinate system.axisOrder
- the axisorder of this coordinate system.identity
- public CoordinateSystem(Datum datum, Axis[] axisOrder, java.lang.String[] identifiers, 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.identifiers
- of this coordinate system.names
- versions
- descriptions
- areasOfUse
- public CoordinateSystem(java.util.List<PolynomialTransformation> transformations, Datum geodeticDatum, Axis[] axisOrder, Identifiable identity)
transformations
- to use instead of the helmert transformation(s).geodeticDatum
- 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 int getType()
public boolean hasDirectTransformation(CoordinateSystem targetCRS)
targetCRS
- to get the alternative Transformation for.
public PolynomialTransformation 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 Identifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class Identifiable
public final java.util.List<PolynomialTransformation> 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.
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org