org.deegree.crs.coordinatesystems
Class ProjectedCRS
java.lang.Object
org.deegree.crs.Identifiable
org.deegree.crs.coordinatesystems.CoordinateSystem
org.deegree.crs.coordinatesystems.ProjectedCRS
- All Implemented Interfaces:
- java.io.Serializable
public class ProjectedCRS
- extends CoordinateSystem
A ProjectedCRS
is a coordinatesystem defined with a projection and a geographic crs. It allows for
transformation between projected coordinates (mostly in meters) and the lat/lon coordinates of the geographic crs and
vice versa.
- Version:
- $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
- See Also:
- Serialized Form
Constructor Summary |
ProjectedCRS(java.util.List<PolynomialTransformation> transformations,
Projection projection,
Axis[] axisOrder,
Identifiable identity)
|
ProjectedCRS(Projection projection,
Axis[] axisOrder,
Identifiable identity)
|
ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String identifier)
|
ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String[] identifiers)
|
ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String[] identifiers,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
|
ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String identifier,
java.lang.String name,
java.lang.String version,
java.lang.String description,
java.lang.String areaOfUse)
|
Methods inherited from class org.deegree.crs.coordinatesystems.CoordinateSystem |
convertToAxis, getAxis, getDatum, getDirectTransformation, getEasting, getGeodeticDatum, getNorthing, getTransformations, getTypeName, getUnits, hasDirectTransformation |
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 |
ProjectedCRS
public ProjectedCRS(Projection projection,
Axis[] axisOrder,
Identifiable identity)
- Parameters:
projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identity
-
ProjectedCRS
public ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String[] identifiers,
java.lang.String[] names,
java.lang.String[] versions,
java.lang.String[] descriptions,
java.lang.String[] areasOfUse)
- Parameters:
projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identifiers
- names
- versions
- descriptions
- areasOfUse
-
ProjectedCRS
public ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String[] identifiers)
- Parameters:
projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identifiers
-
ProjectedCRS
public ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String identifier,
java.lang.String name,
java.lang.String version,
java.lang.String description,
java.lang.String areaOfUse)
- Parameters:
projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identifier
- name
- version
- description
- areaOfUse
-
ProjectedCRS
public ProjectedCRS(Projection projection,
Axis[] axisOrder,
java.lang.String identifier)
- Parameters:
projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identifier
-
ProjectedCRS
public ProjectedCRS(java.util.List<PolynomialTransformation> transformations,
Projection projection,
Axis[] axisOrder,
Identifiable identity)
- Parameters:
transformations
- to use instead of the helmert transformation.projection
- the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
vice versa.axisOrder
- of this projection.identity
-
getDimension
public int getDimension()
- Specified by:
getDimension
in class CoordinateSystem
- Returns:
- the dimension of this CRS.
getGeographicCRS
public final GeographicCRS getGeographicCRS()
- Returns:
- the underlyingCRS.
getType
public final int getType()
- Specified by:
getType
in class CoordinateSystem
- Returns:
- one of the *_CRS types defined in this class.
getProjection
public final Projection getProjection()
- Returns:
- the projection.
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class CoordinateSystem
toString
public java.lang.String toString()
- Overrides:
toString
in class CoordinateSystem
hashCode
public int hashCode()
- Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even
distribution and is relatively fast. It is created from field f as follows:
- boolean -- code = (f ? 0 : 1)
- byte, char, short, int -- code = (int)f
- long -- code = (int)(f ^ (f >>>32))
- float -- code = Float.floatToIntBits(f);
- double -- long l = Double.doubleToLongBits(f); code = (int)(l ^ (l >>> 32))
- all Objects, (where equals( ) calls equals( ) for this field) -- code = f.hashCode( )
- Array -- Apply above rules to each element
Combining the hash code(s) computed above: result = 37 * result + code;
- Overrides:
hashCode
in class CoordinateSystem
- Returns:
- (int) ( result >>> 32 ) ^ (int) result;
- See Also:
Object.hashCode()
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org