| org.geotools.referencing.AbstractIdentifiedObject org.geotools.referencing.datum.AbstractDatum org.geotools.referencing.datum.DefaultImageDatum
DefaultImageDatum | public class DefaultImageDatum extends AbstractDatum implements ImageDatum(Code) | | 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.
version: $Id: DefaultImageDatum.java 24607 2007-02-26 22:05:40Z desruisseaux $ author: Martin Desruisseaux since: 2.1 |
Constructor Summary | |
public | DefaultImageDatum(ImageDatum 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. | public | DefaultImageDatum(String name, PixelInCell pixelInCell) Constructs an image datum from a name. | public | DefaultImageDatum(Map properties, PixelInCell pixelInCell) Constructs an image datum from a set of properties. |
Method Summary | |
public boolean | equals(AbstractIdentifiedObject object, boolean compareMetadata) Compare this datum with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. | protected String | formatWKT(Formatter formatter) Format the inner part of a
Well
Known Text (WKT) element.
Note: WKT of image datum is not yet part of OGC specification.
Parameters: formatter - The formatter to use. | public PixelInCell | getPixelInCell() Specification of the way the image grid is associated with the image data attributes. | public int | hashCode() Returns a hash value for this image datum. |
DefaultImageDatum | public DefaultImageDatum(ImageDatum datum)(Code) | | 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.
since: 2.2 |
DefaultImageDatum | public DefaultImageDatum(String name, PixelInCell pixelInCell)(Code) | | Constructs an image datum from a name.
Parameters: name - The datum name. Parameters: pixelInCell - the way the image grid is associated with the image data attributes. |
DefaultImageDatum | public DefaultImageDatum(Map properties, PixelInCell pixelInCell)(Code) | | Constructs an image datum from a set of properties. The properties map is given
unchanged to the
.
Parameters: properties - Set of properties. Should contains at least "name" . Parameters: pixelInCell - the way the image grid is associated with the image data attributes. |
equals | public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code) | | Compare this datum with the specified object for equality.
Parameters: object - The object to compare to this . Parameters: compareMetadata - true for performing a strict comparaison, or false for comparing only properties relevant to transformations. true if both objects are equal. |
formatWKT | protected String formatWKT(Formatter formatter)(Code) | | Format the inner part of a
Well
Known Text (WKT) element.
Note: WKT of image datum is not yet part of OGC specification.
Parameters: formatter - The formatter to use. The WKT element name. |
getPixelInCell | public PixelInCell getPixelInCell()(Code) | | Specification of the way the image grid is associated with the image data attributes.
The way image grid is associated with image data attributes. |
hashCode | public int hashCode()(Code) | | Returns a hash value for this image datum.
,
and the like are not taken in account. In
other words, two image datums will return the same hash value if they
are equal in the sense of
DefaultImageDatum.equals equals (AbstractIdentifiedObject, false) .
The hash code value. This value doesn't need to be the samein past or future versions of this class. |
Methods inherited from org.geotools.referencing.AbstractIdentifiedObject | protected static Set asSet(Object[] array)(Code)(Java Doc) protected static void ensureAngularUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureLinearUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object object) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureNonNull(String name, Object[] array, int index) throws IllegalArgumentException(Code)(Java Doc) protected static void ensureTimeUnit(Unit unit) throws IllegalArgumentException(Code)(Java Doc) final public boolean equals(Object object)(Code)(Java Doc) public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject object1, IdentifiedObject object2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(IdentifiedObject[] array1, IdentifiedObject[] array2, boolean compareMetadata)(Code)(Java Doc) protected static boolean equals(Collection collection1, Collection collection2, boolean compareMetadata)(Code)(Java Doc) public Collection getAlias()(Code)(Java Doc) public ReferenceIdentifier getIdentifier(Citation authority)(Code)(Java Doc) public static ReferenceIdentifier getIdentifier(IdentifiedObject info, Citation authority)(Code)(Java Doc) public Set getIdentifiers()(Code)(Java Doc) public ReferenceIdentifier getName()(Code)(Java Doc) public String getName(Citation authority)(Code)(Java Doc) public static String getName(IdentifiedObject info, Citation authority)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info)(Code)(Java Doc) public static Map getProperties(IdentifiedObject info, Citation authority)(Code)(Java Doc) public InternationalString getRemarks()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean nameMatches(String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject object, String name)(Code)(Java Doc) public static boolean nameMatches(IdentifiedObject o1, IdentifiedObject o2)(Code)(Java Doc)
|
|
|