Package org.geotools.referencing.cs
Class DefaultCompoundCS
- Object
-
- Formattable
-
- AbstractIdentifiedObject
-
- AbstractCS
-
- DefaultCompoundCS
-
- All Implemented Interfaces:
Serializable
,CoordinateSystem
,IdentifiedObject
public class DefaultCompoundCS extends AbstractCS
A coordinate system made of two or more independent coordinate systems.Used with CRS type(s) Compound
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
-
Fields inherited from class Formattable
SINGLE_LINE
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultCompoundCS(CoordinateSystem... cs)
Constructs a compound coordinate system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(AbstractIdentifiedObject object, boolean compareMetadata)
Compares this coordinate system with the specified object for equality.List<CoordinateSystem>
getCoordinateSystems()
Returns all coordinate systems in this compound CS.-
Methods inherited from class AbstractCS
distance, formatWKT, getAxis, getDimension, hashCode, isCompatibleDirection, isCompatibleUnit, standard, swapAndScaleAxis
-
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
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
-
-
-
Constructor Detail
-
DefaultCompoundCS
public DefaultCompoundCS(CoordinateSystem... cs)
Constructs a compound coordinate system. A name for this CS will be automatically constructed from the name of all specified CS.- Parameters:
cs
- The set of coordinate syztem.
-
-
Method Detail
-
getCoordinateSystems
public List<CoordinateSystem> getCoordinateSystems()
Returns all coordinate systems in this compound CS.
-
equals
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
Compares this coordinate system with the specified object for equality.- Overrides:
equals
in classAbstractCS
- Parameters:
object
- The object to compare tothis
.compareMetadata
-true
for performing a strict comparaison, orfalse
for comparing only properties relevant to transformations.- Returns:
true
if both objects are equal.
-
-