org.geotools.referencing.cs
Class DefaultCompoundCS

java.lang.Object
  extended by org.geotools.referencing.wkt.Formattable
      extended by org.geotools.referencing.AbstractIdentifiedObject
          extended by org.geotools.referencing.cs.AbstractCS
              extended by org.geotools.referencing.cs.DefaultCompoundCS
All Implemented Interfaces:
java.io.Serializable, org.opengis.referencing.cs.CoordinateSystem, org.opengis.referencing.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
Version:
$Id: DefaultCompoundCS.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.referencing.AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
 
Fields inherited from class org.geotools.referencing.wkt.Formattable
SINGLE_LINE
 
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultCompoundCS(org.opengis.referencing.cs.CoordinateSystem[] cs)
          Constructs a compound coordinate system.
 
Method Summary
 boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
          Compares this coordinate system with the specified object for equality.
 java.util.List<org.opengis.referencing.cs.CoordinateSystem> getCoordinateSystems()
          Returns all coordinate systems in this compound CS.
 
Methods inherited from class org.geotools.referencing.cs.AbstractCS
distance, formatWKT, getAxis, getDimension, hashCode, isCompatibleDirection, isCompatibleUnit, standard, swapAndScaleAxis
 
Methods inherited from class org.geotools.referencing.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 org.geotools.referencing.wkt.Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
 

Constructor Detail

DefaultCompoundCS

public DefaultCompoundCS(org.opengis.referencing.cs.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 java.util.List<org.opengis.referencing.cs.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 class AbstractCS
Parameters:
object - The object to compare to this.
compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
Returns:
true if both objects are equal.


Copyright © 1996-2010 Geotools. All Rights Reserved.