deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial)

org.deegree.model.crs
Class CoordinateSystem

java.lang.Object
  extended by org.deegree.datatypes.QualifiedName
      extended by org.deegree.model.crs.CoordinateSystem
All Implemented Interfaces:
Serializable

public class CoordinateSystem
extends QualifiedName

A coordinate system is a mathematical space, where the elements of the space are called positions. Each position is described by a list of numbers. The length of the list corresponds to the dimension of the coordinate system. So in a 2D coordinate system each position is described by a list containing 2 numbers.

However, in a coordinate system, not all lists of numbers correspond to a position - some lists may be outside the domain of the coordinate system. For example, in a 2D Lat/Lon coordinate system, the list (91,91) does not correspond to a position.

Some coordinate systems also have a mapping from the mathematical space into locations in the real world. So in a Lat/Lon coordinate system, the mathematical position (lat, long) corresponds to a location on the surface of the Earth. This mapping from the mathematical space into real-world locations is called a Datum.

Since:
2.0
Version:
$Revision: 29964 $, 1.0. $Revision: 29964 $, $Date: 2011-03-09 15:02:12 +0100 (Wed, 09 Mar 2011) $
Author:
Andreas Poth, last edited by: $Author: apoth $
See Also:
Serialized Form

Constructor Summary
CoordinateSystem(CoordinateSystem realCRS)
           
CoordinateSystem(CoordinateSystem realCRS, String requestedID)
          Creates a CoordinateSystem as a wrapper to the real CRS.
 
Method Summary
 boolean equals(Object other)
           
 Unit[] getAxisUnits()
           
 CoordinateSystem getCRS()
           
 int getDimension()
           
 String getIdentifier()
          This method returns the requested id (given in the constructor) and not the Identifiable.getIdentifier() which only returns the first configured id.
 String getPrefixedName()
          Since the crs uses a different namespace system as QualifiedName this method only returns the getIdentifier().
 
Methods inherited from class org.deegree.datatypes.QualifiedName
getFormattedString, getLocalName, getNamespace, getPrefix, hashCode, isInNamespace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordinateSystem

CoordinateSystem(CoordinateSystem realCRS,
                 String requestedID)
Creates a CoordinateSystem as a wrapper to the real CRS.

Parameters:
realCRS -

CoordinateSystem

public CoordinateSystem(CoordinateSystem realCRS)
Parameters:
realCRS - to wrap
Method Detail

getIdentifier

public String getIdentifier()
This method returns the requested id (given in the constructor) and not the Identifiable.getIdentifier() which only returns the first configured id.

Returns:
the requested id.

getPrefixedName

public String getPrefixedName()
Since the crs uses a different namespace system as QualifiedName this method only returns the getIdentifier().

Overrides:
getPrefixedName in class QualifiedName
Returns:
string representation of a QualifiedName

getAxisUnits

public Unit[] getAxisUnits()
Returns:
the units of all axis.

getDimension

public int getDimension()
Returns:
the dimension of the encapsulated CRS

getCRS

public CoordinateSystem getCRS()
Returns:
the encapsulated CRS.

equals

public boolean equals(Object other)
Overrides:
equals in class QualifiedName

deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org