|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
@Immutable public abstract class AbstractCRS
Abstract coordinate reference system, usually defined by a coordinate system and a datum.
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 | |
|---|---|
AbstractCRS(CoordinateReferenceSystem crs)
Constructs a new coordinate reference system with the same values than the specified one. |
|
AbstractCRS(Map<String,?> properties,
CoordinateSystem cs)
Constructs a coordinate reference system from a set of properties. |
|
| Method Summary | |
|---|---|
protected int |
computeHashCode()
Computes a hash value for this identified object. |
Measure |
distance(double[] coord1,
double[] coord2)
Computes the distance between two points. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this coordinate reference system with the specified object for equality. |
String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
CoordinateSystem |
getCoordinateSystem()
Returns the coordinate system. |
| 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 ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
public AbstractCRS(CoordinateReferenceSystem crs)
crs - The coordinate reference system to copy.
public AbstractCRS(Map<String,?> properties,
CoordinateSystem cs)
properties - Set of properties. Should contains at least "name".cs - The coordinate system.| Method Detail |
|---|
public CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface CoordinateReferenceSystem
public Measure distance(double[] coord1,
double[] coord2)
throws UnsupportedOperationException,
MismatchedDimensionException
coord1 - Coordinates of the first point.coord2 - Coordinates of the second point.
coord1 and coord2.
UnsupportedOperationException - if this coordinate reference system can't compute
distances.
MismatchedDimensionException - if a coordinate doesn't have the expected dimension.
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 AbstractReferenceSystemobject - 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 AbstractIdentifiedObjectpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class FormattableObjectformatter - The formatter to use.
"GEOGCS").FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||