| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.AbstractReferenceSystem org.geotools.referencing.crs.AbstractCRS org.geotools.referencing.crs.DefaultCompoundCRS
DefaultCompoundCRS | public class DefaultCompoundCRS extends AbstractCRS implements CompoundCRS(Code) | | A coordinate reference system describing the position of points through two or more
independent coordinate reference systems. Thus it is associated with two or more
and
by
defining the compound CRS as an ordered set of two or more instances of
CoordinateReferenceSystem .
since: 2.1 version: $Id: DefaultCompoundCRS.java 24609 2007-02-26 23:35:53Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | DefaultCompoundCRS(CompoundCRS crs) Constructs a new compound CRS 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 | DefaultCompoundCRS(String name, CoordinateReferenceSystem head, CoordinateReferenceSystem tail) Constructs a coordinate reference system from a name and two CRS. | public | DefaultCompoundCRS(String name, CoordinateReferenceSystem head, CoordinateReferenceSystem middle, CoordinateReferenceSystem tail) Constructs a coordinate reference system from a name and three CRS. | public | DefaultCompoundCRS(String name, CoordinateReferenceSystem[] crs) Constructs a coordinate reference system from a name. | public | DefaultCompoundCRS(Map properties, CoordinateReferenceSystem[] crs) Constructs a coordinate reference system from a set of properties.
The properties are given unchanged to the
.
Parameters: properties - Set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compares this coordinate reference system with the specified object for equality.
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. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. | public List | getCoordinateReferenceSystems() The ordered list of coordinate reference systems. | public SingleCRS[] | getSingleCRS() Returns the ordered list of single coordinate reference systems. | public static SingleCRS[] | getSingleCRS(CoordinateReferenceSystem crs) Returns the ordered list of single coordinate reference systems
for the specified CRS. | public int | hashCode() Returns a hash value for this compound CRS.
The hash code value. |
DefaultCompoundCRS | public DefaultCompoundCRS(CompoundCRS crs)(Code) | | Constructs a new compound CRS 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 |
DefaultCompoundCRS | public DefaultCompoundCRS(String name, CoordinateReferenceSystem head, CoordinateReferenceSystem tail)(Code) | | Constructs a coordinate reference system from a name and two CRS.
Parameters: name - The name. Parameters: head - The head CRS. Parameters: tail - The tail CRS. |
DefaultCompoundCRS | public DefaultCompoundCRS(String name, CoordinateReferenceSystem head, CoordinateReferenceSystem middle, CoordinateReferenceSystem tail)(Code) | | Constructs a coordinate reference system from a name and three CRS.
Parameters: name - The name. Parameters: head - The head CRS. Parameters: middle - The middle CRS. Parameters: tail - The tail CRS. |
DefaultCompoundCRS | public DefaultCompoundCRS(String name, CoordinateReferenceSystem[] crs)(Code) | | Constructs a coordinate reference system from a name.
Parameters: name - The name. Parameters: crs - The array of coordinate reference system making this compound CRS. |
DefaultCompoundCRS | public DefaultCompoundCRS(Map properties, CoordinateReferenceSystem[] crs)(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: crs - The array of coordinate reference system making this compound CRS. |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compares this coordinate reference system with the specified object for equality.
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. |
formatWKT | protected String formatWKT(Formatter formatter)(Code) | | Format the inner part of a
Well
Known Text (WKT) element.
Parameters: formatter - The formatter to use. The name of the WKT element type, which is "COMPD_CS" . |
getCoordinateReferenceSystems | public List getCoordinateReferenceSystems()(Code) | | The ordered list of coordinate reference systems.
The coordinate reference systems. |
getSingleCRS | public SingleCRS[] getSingleCRS()(Code) | | Returns the ordered list of single coordinate reference systems.
If this compound CRS contains other compound CRS, all of
them are expanded in an array of
SingleCRS objects.
The single coordinate reference systems. throws: ClassCastException - if a CRS is neither a SingleCRS or a CompoundCRS. |
getSingleCRS | public static SingleCRS[] getSingleCRS(CoordinateReferenceSystem crs)(Code) | | Returns the ordered list of single coordinate reference systems
for the specified CRS. The specified CRS doesn't need to be a
Geotools implementation.
Parameters: crs - The coordinate reference system. The single coordinate reference systems. throws: ClassCastException - if a CRS is neither a SingleCRS or a CompoundCRS. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this compound CRS.
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)
|
|
|