org.deegree.crs.coordinatesystems
Class ProjectedCRS
java.lang.Object
  
org.deegree.crs.CRSIdentifiable
      
org.deegree.crs.coordinatesystems.CoordinateSystem
          
org.deegree.crs.coordinatesystems.ProjectedCRS
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: 22635 $, $Date: 2010-02-19 11:33:08 +0100 (Fr, 19 Feb 2010) $
 
- Author:
 
  - Rutger Bezema, last edited by: $Author: rbezema $
 
 
 
| 
Constructor Summary | 
ProjectedCRS(List<Transformation> transformations,
             Projection projection,
             Axis[] axisOrder,
             CRSIdentifiable identity)
 
            | 
ProjectedCRS(Projection projection,
             Axis[] axisOrder,
             CRSCodeType code)
 
            | 
ProjectedCRS(Projection projection,
             Axis[] axisOrder,
             CRSCodeType[] codes)
 
            | 
ProjectedCRS(Projection projection,
             Axis[] axisOrder,
             CRSCodeType[] codes,
             String[] names,
             String[] versions,
             String[] descriptions,
             String[] areasOfUse)
 
            | 
ProjectedCRS(Projection projection,
             Axis[] axisOrder,
             CRSCodeType code,
             String name,
             String version,
             String description,
             String areaOfUse)
 
            | 
ProjectedCRS(Projection projection,
             Axis[] axisOrder,
             CRSIdentifiable identity)
 
            | 
 
 
| 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.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 | 
 
 
ProjectedCRS
public ProjectedCRS(Projection projection,
                    Axis[] axisOrder,
                    CRSIdentifiable 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,
                    CRSCodeType[] codes,
                    String[] names,
                    String[] versions,
                    String[] descriptions,
                    String[] areasOfUse)
- Parameters:
 projection - the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
            vice versa.axisOrder - of this projection.codes - names - versions - descriptions - areasOfUse - 
ProjectedCRS
public ProjectedCRS(Projection projection,
                    Axis[] axisOrder,
                    CRSCodeType[] codes)
- Parameters:
 projection - the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
            vice versa.axisOrder - of this projection.codes - 
ProjectedCRS
public ProjectedCRS(Projection projection,
                    Axis[] axisOrder,
                    CRSCodeType code,
                    String name,
                    String version,
                    String description,
                    String areaOfUse)
- Parameters:
 projection - the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
            vice versa.axisOrder - of this projection.code - name - version - description - areaOfUse - 
ProjectedCRS
public ProjectedCRS(Projection projection,
                    Axis[] axisOrder,
                    CRSCodeType code)
- Parameters:
 projection - the projection which converts coordinates from this ProjectedCRS into the underlying GeographicCRS and
            vice versa.axisOrder - of this projection.code - 
ProjectedCRS
public ProjectedCRS(List<Transformation> transformations,
                    Projection projection,
                    Axis[] axisOrder,
                    CRSIdentifiable 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(Object other)
- Overrides:
 equals in class CoordinateSystem
 
 
toString
public 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]]>