|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.cs.Info
org.deegree_impl.model.cs.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.
CS_CoordinateSystem
,
Serialized FormNested Class Summary | |
(package private) class |
CoordinateSystem.Export
Wrap a CoordinateSystem object for use with OpenGIS.
|
Nested classes inherited from class org.deegree_impl.model.cs.Info |
Info.AngularUnit, Info.LinearUnit |
Field Summary | |
private static long |
serialVersionUID
Serial number for interoperability with different versions. |
Fields inherited from class org.deegree_impl.model.cs.Info |
pool |
Constructor Summary | |
(package private) |
CoordinateSystem(java.util.Map properties)
Construct a coordinate system. |
|
CoordinateSystem(java.lang.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(java.lang.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. |
(package private) java.lang.Object |
toOpenGIS(java.lang.Object adapters)
Returns an OpenGIS interface for this coordinate system. |
Methods inherited from class org.deegree_impl.model.cs.Info |
addString, addUnit, cachedOpenGIS, 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 |
Field Detail |
private static final long serialVersionUID
Constructor Detail |
public CoordinateSystem(java.lang.String name)
name
- The coordinate system name.CoordinateSystem(java.util.Map properties)
properties
- The set of properties (see Info
).Method Detail |
final void checkAxis(DatumType type) throws java.lang.IllegalArgumentException
type
- The datum type, or null
if unknow.
java.lang.IllegalArgumentException
- if two axis have the same direction.public abstract int getDimension()
getDimension
in interface Dimensioned
CS_CoordinateSystem.getDimension()
public abstract AxisInfo getAxis(int dimension)
dimension
- Zero based index of axis.CS_CoordinateSystem.getAxis(int)
public abstract Unit getUnits(int dimension)
dimension
- Zero based index of axis.CS_CoordinateSystem.getUnits(int)
final Unit getUnits()
null
.
Datum getDatum()
public Envelope getDefaultEnvelope()
CS_CoordinateSystem.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(java.lang.Object object)
equals
in class Info
java.lang.Object toOpenGIS(java.lang.Object adapters)
Object
in order
to avoid too early class loading of OpenGIS interface.
toOpenGIS
in class Info
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |