|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattable
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
public abstract class AbstractCRS
Abstract coordinate reference system, usually defined by a coordinate system and a datum.
AbstractCS,
AbstractDatum,
Serialized Form
modules/library/referencing (gt2-referencing.jar) (Maven report) (SVN head)| Field Summary | |
|---|---|
protected CoordinateSystem |
coordinateSystem
The coordinate system. |
| Fields inherited from class AbstractIdentifiedObject |
|---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from interface ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY, VALID_AREA_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 properties,
CoordinateSystem cs)
Constructs a coordinate reference system from a set of properties. |
|
| Method Summary | |
|---|---|
Measure |
distance(double[] coord1,
double[] coord2)
Computes the distance between two points. |
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this coordinate reference system with the specified object for equality. |
protected String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
CoordinateSystem |
getCoordinateSystem()
Returns the coordinate system. |
int |
hashCode()
Returns a hash value for this CRS. |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, getScope, getValidArea |
| Methods inherited from class AbstractIdentifiedObject |
|---|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches |
| Methods inherited from class Formattable |
|---|
toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ReferenceSystem |
|---|
getDomainOfValidity, getScope, getValidArea |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
protected final CoordinateSystem coordinateSystem
| Constructor Detail |
|---|
public AbstractCRS(CoordinateReferenceSystem crs)
public AbstractCRS(Map 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(AbstractIdentifiedObject object,
boolean compareMetadata)
compareMetadata is true, then all available properties are
compared including valid area and scope.
equals in class AbstractReferenceSystemobject - The object to compare to this.compareMetadata - true for performing a strict comparaison, or
false for comparing only properties relevant to transformations.
true if both objects are equal.public int hashCode()
equals(AbstractIdentifiedObject,
false).
hashCode in class AbstractIdentifiedObjectprotected String formatWKT(Formatter formatter)
formatWKT in class Formattableformatter - The formatter to use.
"GEOGCS").Formattable.toWKT(),
Formattable.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||