org.geotoolkit.referencing.cs
Class DefaultCompoundCS

Object
  extended by FormattableObject
      extended by AbstractIdentifiedObject
          extended by AbstractCS
              extended by DefaultCompoundCS
All Implemented Interfaces:
Serializable, Formattable, LenientComparable, CoordinateSystem, IdentifiedObject

@Immutable
public class DefaultCompoundCS
extends AbstractCS

A coordinate system made of two or more independent coordinate systems.

Used with CRS type(s)
Compound

Since:
2.0
Version:
3.18
Author:
Martin Desruisseaux (IRD, Geomatys)
See Also:
Serialized Form
Module:
referencing/geotk-referencing (download)    View source code for this class

Field Summary
 
Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from class FormattableObject
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultCompoundCS(CoordinateSystem... cs)
          Constructs a compound coordinate system.
 
Method Summary
 boolean equals(Object object, ComparisonMode mode)
          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
computeHashCode, distance, formatWKT, getAxis, getDimension, isCompatibleDirection, isCompatibleUnit, standard, swapAndScaleAxis
 
Methods inherited from class AbstractIdentifiedObject
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, 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 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.

Returns:
All coordinate systems in this compound CS.

equals

public boolean equals(Object object,
                      ComparisonMode mode)
Compares this coordinate system with the specified object for equality.

Specified by:
equals in interface LenientComparable
Overrides:
equals in class AbstractCS
Parameters:
object - The object to compare to this.
mode - STRICT for performing a strict comparison, or IGNORE_METADATA for comparing only properties relevant to transformations.
Returns:
true if both objects are equal.


Copyright © 2009-2011 Geotoolkit.org. All Rights Reserved.