|
|||||||||||
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
org.deegree_impl.model.cs.LocalCoordinateSystem
A local coordinate system, with uncertain relationship to the world. In general, a local coordinate system cannot be related to other coordinate systems. However, if two objects supporting this interface have the same dimension, axes, units and datum then client code is permitted to assume that the two coordinate systems are identical. This allows several datasets from a common source (e.g. a CAD system) to be overlaid. In addition, some implementations of the Coordinate Transformation (CT) package may have a mechanism for correlating local datums. (E.g. from a database of transformations, which is created and maintained from real-world measurements.)
CS_LocalCoordinateSystem
,
Serialized FormNested Class Summary | |
private class |
LocalCoordinateSystem.Export
Wrap a LocalCoordinateSystem object for use with OpenGIS.
|
Nested classes inherited from class org.deegree_impl.model.cs.Info |
Info.AngularUnit, Info.LinearUnit |
Field Summary | |
private AxisInfo[] |
axes
Axes details. |
private LocalDatum |
datum
The local datum. |
private static long |
serialVersionUID
Serial number for interoperability with different versions. |
private Unit[] |
units
Units used along all axis. |
Fields inherited from class org.deegree_impl.model.cs.Info |
pool |
Constructor Summary | |
(package private) |
LocalCoordinateSystem(java.util.Map properties,
LocalDatum datum,
Unit[] units,
AxisInfo[] axes)
Creates a local coordinate system. |
|
LocalCoordinateSystem(java.lang.String name,
LocalDatum datum,
Unit unit,
AxisInfo[] axes)
Creates a local coordinate system. |
Method Summary | |
(package private) java.lang.String |
addString(java.lang.StringBuffer buffer)
Fill the part inside "[...]". |
boolean |
equivalents(CoordinateSystem cs)
Returns true if this coordinate system is equivalents to
the specified coordinate system. |
AxisInfo |
getAxis(int dimension)
Gets axis details for dimension within coordinate system. |
(package private) Datum |
getDatum()
Override CoordinateSystem.getDatum() . |
int |
getDimension()
Dimension of the coordinate system. |
LocalDatum |
getLocalDatum()
Gets the local datum. |
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 local coordinate system. |
Methods inherited from class org.deegree_impl.model.cs.CoordinateSystem |
checkAxis, equals, getDefaultEnvelope, getUnits |
Methods inherited from class org.deegree_impl.model.cs.Info |
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
private final LocalDatum datum
private final Unit[] units
private final AxisInfo[] axes
Constructor Detail |
public LocalCoordinateSystem(java.lang.String name, LocalDatum datum, Unit unit, AxisInfo[] axes)
name
- Name to give new object.datum
- Local datum to use in created coordinate system.unit
- Units to use for all axes in created coordinate system.axes
- Axes to use in created coordinate system.LocalCoordinateSystem(java.util.Map properties, LocalDatum datum, Unit[] units, AxisInfo[] axes)
properties
- The set of properties (see Info
).datum
- Local datum to use in created coordinate system.units
- Units to use in created coordinate system.axes
- Axes to use in created coordinate system.Method Detail |
final Datum getDatum()
CoordinateSystem.getDatum()
.
getDatum
in class CoordinateSystem
public LocalDatum getLocalDatum()
CS_LocalCoordinateSystem.getLocalDatum()
public int getDimension()
getDimension
in interface Dimensioned
getDimension
in class CoordinateSystem
CS_CoordinateSystem.getDimension()
public AxisInfo getAxis(int dimension)
getAxis
in class CoordinateSystem
dimension
- Zero based index of axis.CS_CoordinateSystem.getAxis(int)
public Unit getUnits(int dimension)
getUnits
in class CoordinateSystem
dimension
- Zero based index of axis.CS_CoordinateSystem.getUnits(int)
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 default implementation compare datum, units and axis, but ignore
name, alias and other meta-data informations.
equivalents
in class CoordinateSystem
cs
- The coordinate system (may be null
).
true
if both coordinate systems are equivalent.java.lang.String addString(java.lang.StringBuffer buffer)
addString
in class Info
buffer
- The buffer to add string to.
final java.lang.Object toOpenGIS(java.lang.Object adapters)
Object
in order
to avoid too early class loading of OpenGIS interface.
toOpenGIS
in class CoordinateSystem
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |