public class AbstractCS extends AbstractIdentifiedObject implements CoordinateSystem
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. For example it is not
possible to infer the exact coordinate system from Well Known Text (WKT) version 1 in some cases
(e.g. in a
LOCAL_CS element). In such exceptional situation, a plain
AbstractCS object may be
CoordinateSystemAxisinstances given to the constructor are also immutable. Most SIS subclasses and related classes are immutable under similar conditions. This means that unless otherwise noted in the javadoc,
CoordinateSysteminstances created using only SIS factories and static constants can be shared by many objects and passed between threads without synchronization.
|Modifier||Constructor and Description|
Creates a new coordinate system with the same values than the specified one.
Constructs a coordinate system from a set of properties and a sequence of axes.
|Modifier and Type||Method and Description|
Returns a SIS coordinate system implementation with the values of the given arbitrary implementation.
Compares the specified object with this coordinate system for equality.
Returns a coordinate system equivalent to this one but with axes rearranged according the given convention.
Formats the inner part of the Well Known Text (WKT) representation of this coordinate system.
Returns the axis for this coordinate system at the specified dimension.
Returns the number of dimensions of this coordinate system.
Returns the GeoAPI interface implemented by this class.
castOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public AbstractCS(Map<String,?> properties, CoordinateSystemAxis... axes)
|Property name||Value type||Returned by|
properties- The properties to be given to the identified object.
axes- The sequence of axes.
protected AbstractCS(CoordinateSystem cs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
cs- The coordinate system to copy.
public static AbstractCS castOrCopy(CoordinateSystem object)
null, then this method returns
UserDefinedCS, then this method delegates to the
castOrCopy(…)method of the corresponding SIS subclass. Note that if the given object implements more than one of the above-cited interfaces, then the
castOrCopy(…)method to be used is unspecified.
AbstractCS, then it is returned unchanged.
AbstractCSinstance is created using the copy constructor and returned. Note that this is a shallow copy operation, since the other properties contained in the given object are not recursively copied.
object- The object to get as a SIS implementation, or
nullif the argument was null.
public Class<? extends CoordinateSystem> getInterface()
CoordinateSystem.class. Subclasses implementing a more specific GeoAPI interface shall override this method.
public final int getDimension()
public final CoordinateSystemAxis getAxis(int dimension) throws IndexOutOfBoundsException
public AbstractCS forConvention(AxesConvention convention)
convention- The axes convention for which a coordinate system is desired.
public boolean equals(Object object, ComparisonMode mode)
object- The object to compare to
STRICTfor performing a strict comparison, or
IGNORE_METADATAfor comparing only properties relevant to coordinate transformations.
trueif both objects are equal.
Utilities.deepEquals(Object, Object, ComparisonMode)
protected long computeHashCode()
hashCode()for computing the hash code when first needed. See
AbstractIdentifiedObject.computeHashCode()for more information.
CS[…]element for historical reasons. Axes shall be formatted by the enclosing element (usually an
EllipsoidalCShaving (φ,λ) axes in a unit defined by the enclosing CRS (usually degrees).
CS[ellipsoidal, 2], Axis["latitude", north], Axis["longitude", east]
CSis defined in the WKT 2 specification only.
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.