Package org.geotools.referencing
Class AbstractReferenceSystem
- Object
-
- Formattable
-
- AbstractIdentifiedObject
-
- AbstractReferenceSystem
-
- All Implemented Interfaces:
Serializable,IdentifiedObject,ReferenceSystem
- Direct Known Subclasses:
AbstractCRS
public class AbstractReferenceSystem extends AbstractIdentifiedObject implements ReferenceSystem
Description of a spatial and temporal reference system used by a dataset.This class is conceptually abstract, even if it is technically possible to instantiate it. Typical applications should create instances of the most specific subclass with
Defaultprefix instead. An exception to this rule may occurs when it is not possible to identify the exact type.- 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
-
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractReferenceSystem(Map<String,?> properties)Constructs a reference system from a set of properties.AbstractReferenceSystem(ReferenceSystem object)Constructs a new reference system with the same values than the specified one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(AbstractIdentifiedObject object, boolean compareMetadata)Compare this reference system with the specified object for equality.ExtentgetDomainOfValidity()Area or region or timeframe in which this (coordinate) reference system is valid.InternationalStringgetScope()Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid.-
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, hashCode, nameMatches, nameMatches, nameMatches
-
Methods inherited from class Formattable
cleanupThreadLocals, formatWKT, toString, toWKT, toWKT, toWKT, toWKT
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
-
-
-
Constructor Detail
-
AbstractReferenceSystem
public AbstractReferenceSystem(ReferenceSystem object)
Constructs a new reference system 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.- Parameters:
object- The reference system to copy.- Since:
- 2.2
-
AbstractReferenceSystem
public AbstractReferenceSystem(Map<String,?> properties)
Constructs a reference system from a set of properties. The properties given in argument follow the same rules than for the super-class constructor. Additionally, the following properties are understood by this construtor:Property name Value type Value given to "domainOfValidity"ExtentgetDomainOfValidity()"scope"StringorInternationalStringgetScope()- Parameters:
properties- The properties to be given to this object.
-
-
Method Detail
-
getDomainOfValidity
public Extent getDomainOfValidity()
Area or region or timeframe in which this (coordinate) reference system is valid. Returnsnullif not available.- Specified by:
getDomainOfValidityin interfaceReferenceSystem- Returns:
- The reference system valid domain, or
nullif not available. - Since:
- 2.4
-
getScope
public InternationalString getScope()
Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid. Returnsnullif not available.- Specified by:
getScopein interfaceReferenceSystem- Returns:
- The domain of usage, or
nullif none.
-
equals
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
Compare this reference system with the specified object for equality. IfcompareMetadataistrue, then all available properties are compared including getDomainOfValidity() valid area} and scope.- Overrides:
equalsin classAbstractIdentifiedObject- Parameters:
object- The object to compare tothis.compareMetadata-truefor performing a strict comparaison, orfalsefor comparing only properties relevant to transformations.- Returns:
trueif both objects are equal.
-
-