Package org.apache.sis.internal.geotiff
Enum Compression
- All Implemented Interfaces:
Serializable
,Comparable<Compression>
,java.lang.constant.Constable
Possible values for
Tags.Compression
.
Data compression applies only to raster image data. All other TIFF fields are unaffected.
Except otherwise noted, field names in this class are upper-case variant of the names used in Web Coverage Service (WCS) as specified in the following specification:
OGC 12-100: GML Application Schema - Coverages - GeoTIFF Coverage Encoding ProfileThe main exception is
CCITT
, which has different name in WCS query and response.- Since:
- 0.8
- Version:
- 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnsupported.Unsupported.CCITT Group 3, 1-Dimensional Modified Huffman run length encoding.Unsupported.Unsupported.Deflate compression, like ZIP format.Unsupported.Unsupported.Unsupported.Unsupported.Unsupported.Unsupported.JPEG compression.LZW compression.Unsupported.No compression, but pack data into bytes as tightly as possible, leaving no unused bits except potentially at the end of rows.PackBits compression, a simple byte-oriented run length scheme.Unsupported.Unsupported.Unsupported.Unsupported.Unsupported.Sentinel value for unknown projection. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
The TIFF code for this compression. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Compression
(int code) Creates a new compression enumeration. -
Method Summary
Modifier and TypeMethodDescriptionstatic Compression
valueOf
(int code) Returns the compression method for the given GeoTIFF code, orUNKNOWN
if none.static Compression
Returns the enum constant of this type with the specified name.static Compression[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No compression, but pack data into bytes as tightly as possible, leaving no unused bits except potentially at the end of rows. The component values are stored as an array of type byte.- Name in WCS query: "None"
- Name in WCS response: "None"
-
CCITTRLE
CCITT Group 3, 1-Dimensional Modified Huffman run length encoding.- Name in WCS query: "Huffman"
- Name in WCS response: "CCITTRLE"
-
PACKBITS
PackBits compression, a simple byte-oriented run length scheme.- Name in WCS query: "PackBits"
- Name in WCS response: "PackBits"
-
LZW
LZW compression.- Name in WCS query: "LZW"
- Name in WCS response: "LZW"
-
DEFLATE
Deflate compression, like ZIP format. This is sometimes named"ADOBE_DEFLATE"
, withe the"DEFLATE"
name used for another compression method with code 32946.- Name in WCS query: "Deflate"
- Name in WCS response: "Deflate"
- Other name: "ADOBE_DEFLATE"
-
JPEG
JPEG compression.- Name in WCS query: "JPEG"
- Name in WCS response: "JPEG"
- Name of old JPEG: "OJPEG" (code 6)
-
CCITTFAX3
Unsupported. -
CCITTFAX4
Unsupported. -
NEXT
Unsupported. -
CCITTRLEW
Unsupported. -
THUNDERSCAN
Unsupported. -
IT8CTPAD
Unsupported. -
IT8LW
Unsupported. -
IT8MP
Unsupported. -
IT8BL
Unsupported. -
PIXARFILM
Unsupported. -
PIXARLOG
Unsupported. -
DCS
Unsupported. -
JBIG
Unsupported. -
SGILOG
Unsupported. -
SGILOG24
Unsupported. -
JP2000
Unsupported. -
UNKNOWN
Sentinel value for unknown projection.
-
-
Field Details
-
code
final int codeThe TIFF code for this compression.
-
-
Constructor Details
-
Compression
private Compression(int code) Creates a new compression enumeration.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the compression method for the given GeoTIFF code, orUNKNOWN
if none.- Parameters:
code
- the TIFF code for which to get a compression enumeration value.- Returns:
- enumeration value for the given code, or
UNKNOWN
if none.
-