public final class GeoKeyEntry extends Object implements Comparable<GeoKeyEntry>
If the Tiff Tag location is 0, then the value is a Short and is contained in the offset. Otherwise, there is one or more value in the specified external Tiff tag. The number is specified by the count field, and the offset into the record is the offset field.
Constructor and Description |
---|
GeoKeyEntry(int keyID,
int tagLoc,
int count,
int offset)
Constructor of a
GeoKeyEntry . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GeoKeyEntry o)
According to GeoTIff spec:
In the TIFF spec it is required that TIFF tags be written out to the file in tag-ID sorted
order.
|
boolean |
equals(Object obj) |
int |
getCount() |
int |
getKeyID() |
int |
getTiffTagLocation() |
int |
getValueOffset() |
int[] |
getValues() |
int |
hashCode() |
void |
setCount(int count) |
void |
setKeyID(int keyID) |
void |
setTiffTagLocation(int tagLoc) |
void |
setValueOffset(int valueOffset) |
String |
toString() |
public GeoKeyEntry(int keyID, int tagLoc, int count, int offset)
GeoKeyEntry
.keyID
- the id of this GeoKeyEntry
.tagLoc
- the location of this tag.count
- offset
- public int getKeyID()
public int getTiffTagLocation()
public int getCount()
public int getValueOffset()
public void setCount(int count)
public void setKeyID(int keyID)
public void setTiffTagLocation(int tagLoc)
public void setValueOffset(int valueOffset)
public int[] getValues()
public int compareTo(GeoKeyEntry o)
In the TIFF spec it is required that TIFF tags be written out to the file in tag-ID sorted order. This is done to avoid forcing software to perform N-squared sort operations when reading and writing tags.
compareTo
in interface Comparable<GeoKeyEntry>
Copyright © 1996–2019 Geotools. All rights reserved.