public class DefaultImageDatum extends AbstractDatum implements ImageDatum
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
DefaultImageDatum(ImageDatum datum)
Constructs a new datum with the same values than the specified one.
|
DefaultImageDatum(Map<String,?> properties,
PixelInCell pixelInCell)
Constructs an image datum from a set of properties.
|
DefaultImageDatum(String name,
PixelInCell pixelInCell)
Constructs an image datum from a name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compare this datum with the specified object for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
PixelInCell |
getPixelInCell()
Specification of the way the image grid is associated with the image data attributes.
|
int |
hashCode()
Returns a hash value for this image datum.
|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope, getValidArea
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultImageDatum(ImageDatum datum)
datum
- The datum to copy.public DefaultImageDatum(String name, PixelInCell pixelInCell)
name
- The datum name.pixelInCell
- the way the image grid is associated with the image data attributes.public DefaultImageDatum(Map<String,?> properties, PixelInCell pixelInCell)
properties
- Set of properties. Should contains at least "name"
.pixelInCell
- the way the image grid is associated with the image data attributes.public PixelInCell getPixelInCell()
getPixelInCell
in interface ImageDatum
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractDatum
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.public int hashCode()
equals
(AbstractIdentifiedObject, false)
.hashCode
in class AbstractIdentifiedObject
protected String formatWKT(Formatter formatter)
Note: WKT of image datum is not yet part of OGC specification.
formatWKT
in class AbstractDatum
formatter
- The formatter to use.Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.