Class AbstractReferenceSystem
Object
FormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
- All Implemented Interfaces:
Serializable, Formattable, Deprecable, LenientComparable, Printable, IdentifiedObject, ReferenceSystem
- Direct Known Subclasses:
AbstractCRS, ReferencingByIdentifiers
Description of a spatial and temporal reference system used by a dataset.
Reference systems do not necessarily use coordinates. For example, a reference system could use postal codes.
The specialized case of referencing by coordinates is handled by the
AbstractCRS subclass.
This class inherits the name, aliases, identifiers, domains and remarks from the parent class.
Instantiation
This class is conceptually abstract, even if it is technically possible to instantiate it. Typical applications should create instances of the most specific subclass prefixed byDefault instead.
Immutability and thread safety
This base class is immutable and thus thread-safe if the property values (not necessarily the map itself) given to the constructor are also immutable. Most SIS subclasses and related classes are immutable under similar conditions. This means that unless otherwise noted in the javadoc,ReferenceSystem instances created using
only SIS factories and static constants can be shared by many objects and passed between threads without
synchronization.- Since:
- 0.4
- See Also:
-
Field Summary
Fields inherited from class AbstractIdentifiedObject
DEPRECATED_KEY, DOMAINS_KEY, LOCALE_KEYModifier and TypeFieldDescriptionstatic final StringOptional key which can be given to the constructor for specifying the object is deprecated.static final StringKey for the"domains"property to be given to theObjectFactory.createFoo(Map, ...)methods.static final StringOptional key which can be given to the constructor for specifying the locale to use for producing error messages.Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractReferenceSystem(Map<String, ?> properties) Constructs a reference system from the given properties.protectedConstructs a new reference system with the same values as the specified one. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Replaced byAbstractIdentifiedObject.getDomains()as of ISO 19111:2019.Returns the GeoAPI interface that defines the contract of this implementation class.Methods inherited from class AbstractIdentifiedObject
castOrCopy, computeHashCode, equals, equals, formatTo, formatTo, getAlias, getDescription, getDomains, getIdentifiers, getInterface, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameModifier and TypeMethodDescriptionstatic AbstractIdentifiedObjectcastOrCopy(IdentifiedObject object) Returns a SIS identified object implementation with the values of the given arbitrary implementation.protected longInvoked byAbstractIdentifiedObject.hashCode()for computing the hash code when first needed.final booleanCompares the specified object with this object for equality.booleanequals(Object object, ComparisonMode mode) Compares this object with the given object for equality.voidFormats the name or identifier of this object using the provider formatter.protected StringFormats the inner part of the Well Known Text (WKT) representation for this object.Returns alternative names by which this object is identified.Returns a narrative explanation of the role of this object.Returns the usage of this CRS-related object.Returns identifiers which references elsewhere the object's defining information.final Class<? extends IdentifiedObject> Deprecated, for removal: This API element is subject to removal in a future version.RenamedAbstractIdentifiedObject.getStandardType()for integration withLenientComparable.getName()Returns the primary name by which this object is identified.Returns comments on or information about this object, including data source information.final intReturns a hash value for this identified object.booleanReturnstrueif this object is deprecated.booleanReturnstrueif either the primary name or at least one alias matches the given string according heuristic rules.Methods inherited from class FormattableObject
print, toString, toString, toWKTModifier and TypeMethodDescriptionvoidprint()Prints a string representation of this object to the standard output stream.Returns a Well Known Text (WKT) or an alternative text representation for this object.toString(Convention convention) Returns a Well Known Text (WKT) for this object using the specified convention.toWKT()Returns a strictly compliant Well Known Text (WKT) using the default convention, symbols and indentation.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface IdentifiedObject
toWKT
-
Constructor Details
-
AbstractReferenceSystem
Constructs a reference system from the given properties. The properties given in argument follow the same rules as for the super-class constructor. The following table is a reminder of main (not all) properties:Recognized properties (non exhaustive list) Property name Value type Returned by "name" ReferenceIdentifierorStringAbstractIdentifiedObject.getName()"alias" GenericNameorCharSequence(optionally as array)AbstractIdentifiedObject.getAlias()"identifiers" ReferenceIdentifier(optionally as array)AbstractIdentifiedObject.getIdentifiers()"domains" DefaultObjectDomain(optionally as array)AbstractIdentifiedObject.getDomains()"remarks" InternationalStringorStringAbstractIdentifiedObject.getRemarks()- Parameters:
properties- the properties to be given to this object.
-
AbstractReferenceSystem
Constructs a new reference system with the same values as the specified one. This copy constructor provides a way to convert an arbitrary implementation into a SIS 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.
-
-
Method Details
-
getStandardType
Returns the GeoAPI interface that defines the contract of this implementation class. The default implementation returnsReferenceSystem.class. Subclasses implementing a more specific GeoAPI interface shall override this method.- Specified by:
getStandardTypein interfaceLenientComparable- Overrides:
getStandardTypein classAbstractIdentifiedObject- Returns:
- the GeoAPI interface implemented by this class.
- Since:
- 1.7
- See Also:
-
getDomainOfValidity
Deprecated.Replaced byAbstractIdentifiedObject.getDomains()as of ISO 19111:2019.Returns the region or timeframe in which this reference system is valid, ornullif unspecified.- Specified by:
getDomainOfValidityin interfaceReferenceSystem- Returns:
- area or region or timeframe in which this (coordinate) reference system is valid, or
null.
-
getScope
Deprecated.Replaced byAbstractIdentifiedObject.getDomains()as of ISO 19111:2019.Returns the domain or limitations of usage, ornullif unspecified.- Specified by:
getScopein interfaceReferenceSystem- Returns:
- description of domain of usage, or limitations of usage, for which this
(coordinate) reference system object is valid, or
null.
-
AbstractIdentifiedObject.getDomains()as of ISO 19111:2019.