|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
@Immutable public class AbstractSingleCRS
Abstract coordinate reference system, consisting of a single coordinate system and a single datum (as opposed to compound CRS).
A coordinate reference system consists of an ordered sequence of coordinate system axes that are related to the earth through a datum. A coordinate reference system is defined by one datum and by one coordinate system. Most coordinate reference system do not move relative to the earth, except for engineering coordinate reference systems defined on moving platforms such as cars, ships, aircraft, and spacecraft.
Coordinate reference systems are commonly divided into sub-types. The common classification criterion for sub-typing of coordinate reference systems is the way in which they deal with earth curvature. This has a direct effect on the portion of the earth's surface that can be covered by that type of CRS with an acceptable degree of error. The exception to the rule is the subtype "Temporal" which has been added by analogy.
This class is conceptually abstract, even if it is technically possible to
instantiate it. Typical applications should create instances of the most specific subclass with
Default prefix instead. An exception to this rule may occurs when it is not possible to
identify the exact type.
AbstractCS,
AbstractDatum,
Serialized Form
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
AbstractSingleCRS(Map<String,?> properties,
Datum datum,
CoordinateSystem cs)
Constructs a coordinate reference system from a set of properties. |
|
AbstractSingleCRS(SingleCRS crs)
Constructs a new coordinate reference system with the same values than the specified one. |
|
| Method Summary | |
|---|---|
protected int |
computeHashCode()
Computes a hash value for this identified object. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this coordinate reference system with the specified object for equality. |
CoordinateSystemAxis |
getAxis(int dimension)
Returns the axis for the underlying coordinate system at the specified dimension. |
Datum |
getDatum()
Returns the datum. |
int |
getDimension()
Returns the dimension of the underlying coordinate system. |
| Methods inherited from class AbstractCRS |
|---|
distance, formatWKT, getCoordinateSystem |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface SingleCRS |
|---|
getCoordinateSystem |
| Methods inherited from interface ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
public AbstractSingleCRS(SingleCRS crs)
crs - The coordinate reference system to copy.
public AbstractSingleCRS(Map<String,?> properties,
Datum datum,
CoordinateSystem cs)
properties - Set of properties. Should contains at least "name".datum - The datum.cs - The coordinate system.| Method Detail |
|---|
public Datum getDatum()
getDatum in interface SingleCRSpublic int getDimension()
AbstractCRS.coordinateSystem.getDimension().
public CoordinateSystemAxis getAxis(int dimension)
throws IndexOutOfBoundsException
AbstractCRS.coordinateSystem.getAxis(dimension).
dimension - The zero based index of axis.
IndexOutOfBoundsException - if dimension is out of bounds.
public boolean equals(Object object,
ComparisonMode mode)
mode argument value is STRICT or
BY_CONTRACT, then all available properties are
compared including the domain of validity and
the scope.
equals in interface LenientComparableequals in class AbstractCRSobject - The object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only properties
relevant to transformations.
true if both objects are equal.protected int computeHashCode()
AbstractIdentifiedObject.hashCode() when first needed.
Implementation specific feature
In the Geotk implementation, the name, identifiers and remarks are not used for hash code computation.
Consequently two identified objects will return the same hash value if they are equal in the
sense of equals(…,
ComparisonMode.IGNORE_METADATA). This feature allows users to
implement metadata-insensitive HashMap.
computeHashCode in class AbstractCRS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||