Class AbstractDatum

  • All Implemented Interfaces:
    Serializable, Datum, IdentifiedObject
    Direct Known Subclasses:
    DefaultEngineeringDatum, DefaultGeodeticDatum, DefaultImageDatum, DefaultTemporalDatum, DefaultVerticalDatum

    public class AbstractDatum
    extends AbstractIdentifiedObject
    implements Datum
    Specifies the relationship of a coordinate system to the earth, thus creating a coordinate reference system. A datum uses a parameter or set of parameters that determine the location of the origin of the coordinate reference system. Each datum subtype can be associated with only specific types of coordinate systems.

    A datum can be defined as a set of real points on the earth that have coordinates. The definition of the datum may also include the temporal behavior (such as the rate of change of the orientation of the coordinate axes).

    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 Default prefix instead. An exception to this rule may occurs when it is not possible to identify the exact type.

    Martin Desruisseaux (IRD)
    See Also:
    AbstractCS, AbstractCRS, Serialized Form
    • Constructor Detail

      • AbstractDatum

        public AbstractDatum​(Datum datum)
        Constructs a new datum 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.
        datum - The datum to copy.
    • Method Detail

      • getAnchorPoint

        public InternationalString getAnchorPoint()
        Description, possibly including coordinates, of the point or points used to anchor the datum to the Earth. Also known as the "origin", especially for Engineering and Image Datums.
        • For a geodetic datum, this point is also known as the fundamental point, which is traditionally the point where the relationship between geoid and ellipsoid is defined. In some cases, the "fundamental point" may consist of a number of points. In those cases, the parameters defining the geoid/ellipsoid relationship have then been averaged for these points, and the averages adopted as the datum definition.
        • For an engineering datum, the anchor point may be a physical point, or it may be a point with defined coordinates in another CRS.
        • For an image datum, the anchor point is usually either the centre of the image or the corner of the image.
        • For a temporal datum, this attribute is not defined. Instead of the anchor point, a temporal datum carries a separate time origin of type Date.
        Specified by:
        getAnchorPoint in interface Datum
        A description of the anchor point, or null if none.
      • getRealizationEpoch

        public Date getRealizationEpoch()
        The time after which this datum definition is valid. This time may be precise (e.g. 1997 for IRTF97) or merely a year (e.g. 1983 for NAD83). In the latter case, the epoch usually refers to the year in which a major recalculation of the geodetic control network, underlying the datum, was executed or initiated. An old datum can remain valid after a new datum is defined. Alternatively, a datum may be superseded by a later datum, in which case the realization epoch for the new datum defines the upper limit for the validity of the superseded datum.
        Specified by:
        getRealizationEpoch in interface Datum
        The datum realization epoch, or null if not available.
      • getDomainOfValidity

        public Extent getDomainOfValidity()
        Area or region or timeframe in which this datum is valid.
        Specified by:
        getDomainOfValidity in interface Datum
        The datum valid domain, or null if not available.
      • getScope

        public InternationalString getScope()
        Description of domain of usage, or limitations of usage, for which this datum object is valid.
        Specified by:
        getScope in interface Datum
        A description of domain of usage, or null if none.
      • equals

        public boolean equals​(AbstractIdentifiedObject object,
                              boolean compareMetadata)
        Compares the specified object with this datum for equality.
        equals in class AbstractIdentifiedObject
        object - The object to compare to this.
        compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations.
        true if both objects are equal.