Enum Compression

java.lang.Object
java.lang.Enum<Compression>
org.apache.sis.internal.geotiff.Compression
All Implemented Interfaces:
Serializable, Comparable<Compression>, java.lang.constant.Constable

public enum Compression extends Enum<Compression>
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 Profile
The main exception is CCITT, which has different name in WCS query and response.
Since:
0.8
Version:
1.2
  • Enum Constant Details

    • NONE

      public static final Compression 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

      public static final Compression CCITTRLE
      CCITT Group 3, 1-Dimensional Modified Huffman run length encoding.
      • Name in WCS query: "Huffman"
      • Name in WCS response: "CCITTRLE"
    • PACKBITS

      public static final Compression PACKBITS
      PackBits compression, a simple byte-oriented run length scheme.
      • Name in WCS query: "PackBits"
      • Name in WCS response: "PackBits"
    • LZW

      public static final Compression LZW
      LZW compression.
      • Name in WCS query: "LZW"
      • Name in WCS response: "LZW"
    • DEFLATE

      public static final Compression 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

      public static final Compression JPEG
      JPEG compression.
      • Name in WCS query: "JPEG"
      • Name in WCS response: "JPEG"
      • Name of old JPEG: "OJPEG" (code 6)
    • CCITTFAX3

      public static final Compression CCITTFAX3
      Unsupported.
    • CCITTFAX4

      public static final Compression CCITTFAX4
      Unsupported.
    • NEXT

      public static final Compression NEXT
      Unsupported.
    • CCITTRLEW

      public static final Compression CCITTRLEW
      Unsupported.
    • THUNDERSCAN

      public static final Compression THUNDERSCAN
      Unsupported.
    • IT8CTPAD

      public static final Compression IT8CTPAD
      Unsupported.
    • IT8LW

      public static final Compression IT8LW
      Unsupported.
    • IT8MP

      public static final Compression IT8MP
      Unsupported.
    • IT8BL

      public static final Compression IT8BL
      Unsupported.
    • PIXARFILM

      public static final Compression PIXARFILM
      Unsupported.
    • PIXARLOG

      public static final Compression PIXARLOG
      Unsupported.
    • DCS

      public static final Compression DCS
      Unsupported.
    • JBIG

      public static final Compression JBIG
      Unsupported.
    • SGILOG

      public static final Compression SGILOG
      Unsupported.
    • SGILOG24

      public static final Compression SGILOG24
      Unsupported.
    • JP2000

      public static final Compression JP2000
      Unsupported.
    • UNKNOWN

      public static final Compression UNKNOWN
      Sentinel value for unknown projection.
  • Field Details

    • code

      final int code
      The TIFF code for this compression.
  • Constructor Details

    • Compression

      private Compression(int code)
      Creates a new compression enumeration.
  • Method Details

    • values

      public static Compression[] 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

      public static Compression valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOf

      public static Compression valueOf(int code)
      Returns the compression method for the given GeoTIFF code, or UNKNOWN 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.