public class DefaultCompoundCRS extends AbstractCRS implements CompoundCRS
| Flat list | Hierarchical structure |
|---|---|
|
|
getSingleComponents() or getComponents() respectively.
GeographicCRS or ProjectedCRS or EngineeringCRS).VerticalCRS or a ParametricCRS (but not both).TemporalCRS.VerticalCRS + TemporalCRS (without horizontal component) is accepted.GeocentricCRS or three-dimensional GeographicCRS can be combined with TemporalCRS.CoordinateReferenceSystem instances given to the constructor are also immutable.
Unless otherwise noted in the javadoc, this condition holds if all components were created using only
SIS factories and static constants.GeodeticAuthorityFactory.createCompoundCRS(String),
Serialized FormDefined in the sis-referencing module
DEPRECATED_KEY, LOCALE_KEYDOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCompoundCRS(CompoundCRS crs)
Constructs a new coordinate reference system with the same values than the specified one.
|
|
DefaultCompoundCRS(Map<String,?> properties,
CoordinateReferenceSystem... components)
Constructs a compound CRS from the given properties and CRS.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultCompoundCRS |
castOrCopy(CompoundCRS object)
Returns a SIS CRS implementation with the same values than the given arbitrary implementation.
|
protected long |
computeHashCode()
Invoked by
hashCode() for computing the hash code when first needed. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this coordinate reference system with the specified object for equality.
|
DefaultCompoundCRS |
forConvention(AxesConvention convention)
Returns a coordinate reference system equivalent to this one but with axes rearranged according the given
convention.
|
protected String |
formatTo(Formatter formatter)
Formats this CRS as a Well Known Text
CompoundCRS[…] element. |
List<CoordinateReferenceSystem> |
getComponents()
Returns the ordered list of coordinate reference systems.
|
Class<? extends CompoundCRS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
List<SingleCRS> |
getSingleComponents()
Returns the ordered list of single coordinate reference systems.
|
castOrCopy, getCoordinateSystemgetDomainOfValidity, getScopecastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoordinateSystemgetDomainOfValidity, getScopegetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultCompoundCRS(Map<String,?> properties, CoordinateReferenceSystem... components)
| Property name | Value type | Returned by |
|---|---|---|
| "name" | ReferenceIdentifier or String |
AbstractIdentifiedObject.getName() |
| "alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
| "identifiers" | ReferenceIdentifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
| "remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
| "domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
| "scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
properties - the properties to be given to the coordinate reference system.components - the sequence of coordinate reference systems making this compound CRS.IllegalArgumentException - if the given array does not contain at least two components,
or if two consecutive components are a geographic CRS with an ellipsoidal height.GeodeticObjectFactory.createCompoundCRS(Map, CoordinateReferenceSystem...)protected DefaultCompoundCRS(CompoundCRS crs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
crs - the coordinate reference system to copy.public static DefaultCompoundCRS castOrCopy(CompoundCRS object)
null, then this method returns null.
Otherwise if the given object is already a SIS implementation, then the given object is returned unchanged.
Otherwise a new SIS implementation is created and initialized to the attribute values of the given object.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public Class<? extends CompoundCRS> getInterface()
CompoundCRS.class.
CompoundCRS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.getInterface in class AbstractCRSCompoundCRS.class or a user-defined sub-interface.public List<CoordinateReferenceSystem> getComponents()
CompoundCRS instances, as described in class Javadoc.
For a flattened list of SingleCRS instances, see getSingleComponents().getComponents in interface CompoundCRSpublic List<SingleCRS> getSingleComponents()
SingleCRS objects.
See class Javadoc for more information.CRS.getSingleComponents(CoordinateReferenceSystem)public DefaultCompoundCRS forConvention(AxesConvention convention)
this.
If the given convention is AxesConvention.CONVENTIONALLY_ORIENTED or
AxesConvention.NORMALIZED, then this method will also reorder the components
with horizontal CRS (geodetic or projected) first, then vertical CRS, then temporal CRS.
forConvention in class AbstractCRSconvention - the axes convention for which a coordinate reference system is desired.this).AbstractCS.forConvention(AxesConvention)public boolean equals(Object object, ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractCRSobject - the object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only
properties relevant to transformations.true if both objects are equal.AbstractIdentifiedObject.computeHashCode(),
Utilities.deepEquals(Object, Object, ComparisonMode)protected long computeHashCode()
hashCode() for computing the hash code when first needed.
See AbstractIdentifiedObject.computeHashCode()
for more information.computeHashCode in class AbstractCRSprotected String formatTo(Formatter formatter)
CompoundCRS[…] element.
GeographicCRS
or ProjectedCRS or EngineeringCRS).VerticalCRS or a ParametricCRS (but not both).TemporalCRS.formatTo in class AbstractCRSformatter - the formatter where to format the inner content of this WKT element."CompoundCRS" (WKT 2) or "Compd_CS" (WKT 1).Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.