| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.AbstractSingleCRS
All known Subclasses: org.geotools.referencing.crs.DefaultTemporalCRS, org.geotools.referencing.crs.DefaultGeographicCRS, org.geotools.referencing.crs.DefaultGeocentricCRS, org.geotools.referencing.crs.DefaultImageCRS, org.geotools.referencing.crs.AbstractDerivedCRS, org.geotools.referencing.crs.DefaultEngineeringCRS, org.geotools.referencing.crs.DefaultVerticalCRS,
AbstractSingleCRS | public class AbstractSingleCRS extends AbstractCRS implements SingleCRS(Code) | | Abstract coordinate reference system, consisting of a single
and a single
(as opposed to
).
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.
since: 2.1 version: $Id: AbstractSingleCRS.java 24609 2007-02-26 23:35:53Z desruisseaux $ author: Martin Desruisseaux See Also: org.geotools.referencing.cs.AbstractCS See Also: org.geotools.referencing.datum.AbstractDatum |
Field Summary | |
final protected Datum | datum The datum. |
Constructor Summary | |
public | AbstractSingleCRS(SingleCRS crs) Constructs a new coordinate reference system with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. | public | AbstractSingleCRS(Map properties, Datum datum, CoordinateSystem cs) Constructs a coordinate reference system from a set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this coordinate reference system with the specified object for equality.
If
compareMetadata is
true , then all available properties are
compared including
and
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | final void | formatDefaultWKT(Formatter formatter) | public CoordinateSystemAxis | getAxis(int dimension) Returns the axis for the underlying
at
the specified dimension. | public Datum | getDatum() Returns the datum. | public int | getDimension() Returns the dimension of the underlying
. | public int | hashCode() Returns a hash value for this CRS. |
datum | final protected Datum datum(Code) | | The datum.
|
AbstractSingleCRS | public AbstractSingleCRS(SingleCRS crs)(Code) | | Constructs a new coordinate reference system with the same values than the specified one.
This copy constructor provides a way to wrap an arbitrary implementation into a
Geotools one or a user-defined one (as a subclass), usually in order to leverage
some implementation-specific API. This constructor performs a shallow copy,
i.e. the properties are not cloned.
since: 2.2 |
AbstractSingleCRS | public AbstractSingleCRS(Map properties, Datum datum, CoordinateSystem cs)(Code) | | Constructs a coordinate reference system from a set of properties. The properties are given
unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: datum - The datum. Parameters: cs - The coordinate system. |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this coordinate reference system with the specified object for equality.
If
compareMetadata is
true , then all available properties are
compared including
and
.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
getAxis | public CoordinateSystemAxis getAxis(int dimension) throws IndexOutOfBoundsException(Code) | | Returns the axis for the underlying
at
the specified dimension. This is equivalent to
.
(dimension) .
Parameters: dimension - The zero based index of axis. The axis at the specified dimension. throws: IndexOutOfBoundsException - if dimension is out of bounds. |
getDatum | public Datum getDatum()(Code) | | Returns the datum.
The datum. |
getDimension | public int getDimension()(Code) | | Returns the dimension of the underlying
.
This is equivalent to
.
() .
The dimension of this coordinate reference system. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this CRS.
,
and
are not taken in account. In other words, two CRS objects will return the same
hash value if they are equal in the sense of
AbstractSingleCRS.equals(AbstractIdentifiedObject,boolean) equals (AbstractIdentifiedObject,
false) .
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
Fields inherited from org.geotools.referencing.crs.AbstractCRS | final protected CoordinateSystem coordinateSystem(Code)(Java Doc)
|
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|