public class DefaultImageDatum extends AbstractDatum implements ImageDatum
DefaultImageCRS,
GeodeticAuthorityFactory.createImageDatum(String),
Serialized FormDefined in the sis-referencing module
DEPRECATED_KEY, LOCALE_KEYANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultImageDatum(ImageDatum datum)
Creates a new datum with the same values than the specified one.
|
|
DefaultImageDatum(Map<String,?> properties,
PixelInCell pixelInCell)
Creates an image datum from the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultImageDatum |
castOrCopy(ImageDatum object)
Returns a SIS datum 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 datum with the specified object for equality.
|
protected String |
formatTo(Formatter formatter)
Formats this datum as a Well Known Text
ImageDatum[…] element. |
Class<? extends ImageDatum> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
PixelInCell |
getPixelInCell()
Specification of the way the image grid is associated with the image data attributes.
|
castOrCopy, getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope, isHeuristicMatchForNamecastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecatedprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScopegetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultImageDatum(Map<String,?> properties, PixelInCell pixelInCell)
| 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() |
| "anchorPoint" | InternationalString or String |
AbstractDatum.getAnchorPoint() |
| "realizationEpoch" | Date |
AbstractDatum.getRealizationEpoch() |
| "domainOfValidity" | Extent |
AbstractDatum.getDomainOfValidity() |
| "scope" | InternationalString or String |
AbstractDatum.getScope() |
properties - the properties to be given to the identified object.pixelInCell - the way the image grid is associated with the image data attributes.GeodeticObjectFactory.createImageDatum(Map, PixelInCell)protected DefaultImageDatum(ImageDatum datum)
This constructor performs a shallow copy, i.e. the properties are not cloned.
datum - the datum to copy.castOrCopy(ImageDatum)public static DefaultImageDatum castOrCopy(ImageDatum 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 ImageDatum> getInterface()
ImageDatum.class.
ImageDatum
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with
their own set of interfaces.getInterface in class AbstractDatumImageDatum.class or a user-defined sub-interface.public PixelInCell getPixelInCell()
getPixelInCell in interface ImageDatumpublic boolean equals(Object object, ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractDatumobject - the object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only properties
relevant to coordinate 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 AbstractDatumprotected String formatTo(Formatter formatter)
ImageDatum[…] element.
ImageDatum is defined in the WKT 2 specification only.formatTo in class AbstractDatumformatter - the formatter where to format the inner content of this WKT element."ImageDatum".Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.