|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.model.csct.cs.Info
org.deegree.model.csct.cs.CoordinateSystem
public abstract class CoordinateSystem
Base class for all coordinate systems. 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.
Field Summary |
---|
Fields inherited from class org.deegree.model.csct.cs.Info |
---|
pool |
Constructor Summary | |
---|---|
CoordinateSystem(Map properties)
Construct a coordinate system. |
|
CoordinateSystem(String name)
Construct a coordinate system. |
Method Summary | |
---|---|
(package private) void |
checkAxis(DatumType type)
Make sure there is no axis among the same direction (e.g. two north axis, or a east and a west axis). |
boolean |
equals(Object object)
Compares the specified object with this coordinate system for equality. |
boolean |
equivalents(CoordinateSystem cs)
Returns true if this coordinate system is equivalents to the specified
coordinate system. |
abstract AxisInfo |
getAxis(int dimension)
Gets axis details for dimension within coordinate system. |
(package private) Datum |
getDatum()
Returns the datum. |
Envelope |
getDefaultEnvelope()
Gets default envelope of coordinate system. |
abstract int |
getDimension()
Returns the dimension of the coordinate system. |
(package private) Unit |
getUnits()
If all dimensions use the same units, returns this units. |
abstract Unit |
getUnits(int dimension)
Gets units for dimension within coordinate system. |
Methods inherited from class org.deegree.model.csct.cs.Info |
---|
addString, addUnit, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, getAbbreviation, getAlias, getAuthority, getAuthorityCode, getName, getRemarks, hashCode, readResolve, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CoordinateSystem(String name)
name
- The coordinate system name.CoordinateSystem(Map properties)
properties
- The set of properties (see Info
).Method Detail |
---|
final void checkAxis(DatumType type) throws IllegalArgumentException
type
- The datum type, or null
if unknow.
IllegalArgumentException
- if two axis have the same direction.public abstract int getDimension()
getDimension
in interface Dimensioned
public abstract AxisInfo getAxis(int dimension)
dimension
- Zero based index of axis.
public abstract Unit getUnits(int dimension)
dimension
- Zero based index of axis.
final Unit getUnits()
null
.
null
.Datum getDatum()
public Envelope getDefaultEnvelope()
public boolean equivalents(CoordinateSystem cs)
true
if this coordinate system is equivalents to the specified
coordinate system. Two coordinate systems are considered equivalent if the
CoordinateTransformation
from this
to
cs
would be the identity transform. The equivalents
method is
less strict than equals
in that it doesn't compare names, alias, authority
codes or others similar informations.
cs
- The coordinate system (may be null
).
true
if both coordinate systems are equivalent.public boolean equals(Object object)
equals
in class Info
object
-
|
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net