|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractDatum
DefaultImageDatum
@Immutable public class DefaultImageDatum
Defines the origin of an image coordinate reference system. An image datum is used in a local context only. For an image datum, the anchor point is usually either the centre of the image or the corner of the image.
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface Datum |
|---|
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
static DefaultImageDatum |
castOrCopy(ImageDatum object)
Returns a Geotk datum implementation with the same values than the given arbitrary implementation. |
protected int |
computeHashCode()
Computes a hash value for this identified object. |
boolean |
equals(Object object,
ComparisonMode mode)
Compare this datum with the specified object for equality. |
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. |
static DefaultImageDatum |
wrap(ImageDatum object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractDatum |
|---|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface Datum |
|---|
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public static DefaultImageDatum castOrCopy(ImageDatum object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object.
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.@Deprecated public static DefaultImageDatum wrap(ImageDatum object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public PixelInCell getPixelInCell()
getPixelInCell in interface ImageDatum
public 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 transformations.
true if both objects are equal.protected int computeHashCode()
AbstractIdentifiedObject.hashCode() when first needed.
Implementation specific feature
In the Geotk implementation, the name, identifiers and remarks are not used for hash code computation.
Consequently two identified objects will return the same hash value if they are equal in the
sense of equals(…,
ComparisonMode.IGNORE_METADATA). This feature allows users to
implement metadata-insensitive HashMap.
computeHashCode in class AbstractIdentifiedObjectpublic String formatWKT(Formatter formatter)
Note: WKT of image datum is not yet part of OGC specification.
formatWKT in interface FormattableformatWKT in class AbstractDatumformatter - The formatter to use.
FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||