Skip to content

RL2_Types_Data_Image_Compression

Mark Johnson edited this page Aug 30, 2015 · 26 revisions

Data/Sample, Pixel/Image and Compression Types

  • often needed for ['RL2_CreateRasterCoverage'] (RL2_CreateRasterCoverage)

[--> 'List of Sql-Commands'] (Home#commands)

[<-- 'Index Page for RasterLite2 - Commands'] (RasterLite2-Index#commands)


Tip:

When in doubt about:

  • under what conditions
    • who belongs to what
      • to be used where

Look into the sql-text of the

  • raster_coverages
    • BEFORE INSERT triggers

That is where all of these conditions are being inforced.


**Data/Sample Types**:
  • 1-BIT:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?, CCITTFAX4 and PNG) are permitted
      • Image/Pixel Types == (MONOCHROME,PALETTE) are permitted
  • 2-BIT:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE) is permitted
    • no-no's:
      • Compression Types == (CCITTFAX4) is not permitted
  • 4-BIT:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE) is permitted
    • no-no's:
      • Compression Types == (CCITTFAX4) is not permitted
  • INT8:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted
  • UINT8:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE,RGB,MULTIBAND,DATAGRID) are permitted
    • no-no's:
      • Compression Types == (CCITTFAX4) is not permitted
  • INT16:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted
  • UINT16:
    • yesie's:
      • Image/Pixel Types == (RGB,MULTIBAND,DATAGRID) are permitted
    • no-no's:
      • Compression Types == (CCITTFAX4) is not permitted
  • INT32:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted
  • UINT32:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted
  • FLOAT:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted
  • DOUBLE:
    • yesie's:
      • Compression Types == (NONE,DEFLATE_?,LZMA_?) are permitted
      • Image/Pixel Types == (DATAGRID) is permitted

**Image/Pixel Types**:
  • MONOCHROME:

    • no-no's:
      • bands <> 1 are not permitted
      • Compression Types == (CHARLS, ?_WEBP and ?_JP2) are not permitted
      • Data/Sample Types <> 1-BIT are not permitted
  • PALETTE:

    • yesie's:
      • all Compression Types are permitted
    • no-no's:
      • bands <> 1 are not permitted
      • Data/Sample Types <> 1-BIT are not permitted
  • GRAYSCALE:

    • no-no's:
      • bands <> 1 are not permitted
      • Compression Type == CCITTFAX4 is not permitted
      • Data/Sample Types <> (2-BIT, 4-BIT or UINT8) are not permitted
  • RGB:

    • yesie's:
      • Data/Sample Types == (UINT8 and UINT16) are permitted
      • Compression Types == (JPEG,?_WEBP) are only permitted with
        • Data/Sample Types == UINT8
    • no-no's:
      • bands <> 3 are not permitted
      • Compression Type == CCITTFAX4 is not permitted
  • MULTIBAND:

    • yesie's:
      • Data/Sample Types == (UINT8 and UINT16) are permitted
      • for bands (<> 3 or 4) only the following Compression Types are allowed:
        • (NONE and DEFLATE_ *)
      • Compression Type == ?_WEBP is only permitted with
        • Data/Sample Types == UINT8
      • Compression Type == LOSSLESS_JP2 is only permitted with
        • Data/Sample Types == UINT16
    • no-no's:
      • bands (== 1) and (> 255) are not permitted
      • Compression Type == (CCITTFAX4 and JPEG) are not permitted
  • DATAGRID:

    • yesie's:
      • Compression Types == (NONE, DEFLATE_? and LZMA_?) are permitted
      • Compression Types == (PNG,CHARLS,?_JP2) are only permitted with
        • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • bands <> 1 are not permitted
      • Data/Sample Types == (1-BIT, 2-BIT and 4-BIT) are not permitted

**Compression Types**:
  • NONE:
    • yesie's:
      • all Data/Sample Types are permitted
      • all Image/Pixel Types are permitted
  • DEFLATE:
    • yesie's:
      • all Data/Sample Types are permitted
      • all Image/Pixel Types are permitted
  • DEFLATE_NO:
    • yesie's:
      • all Data/Sample Types are permitted
      • all Image/Pixel Types are permitted
  • LZMA:
    • yesie's:
      • all Data/Sample Types are permitted
      • all Image/Pixel Types are permitted
  • LZMA_NO:
    • yesie's:
      • all Data/Sample Types are permitted
      • all Image/Pixel Types are permitted
  • PNG:
    • yesie's:
      • Image/Pixel Types == (MONOCHROM,GRAYSCALE,PALETTE,RGB) are permitted
      • Image/Pixel Types == (MULTIBAND,DATAGRID) are only permitted with
        • for bands (== 3 or 4)
          • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • Data/Sample Types == (UINT32, DOUBLE and FLOAT) are not permitted
  • JPEG:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE) is permitted
      • Image/Pixel Type == (RGB) is only permitted with
          • Data/Sample Type == UINT8
  • LOSSY_WEBP:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE) is permitted
      • Image/Pixel Types == (RGB, MULTIBAND) are only permitted with
          • Data/Sample Type == UINT8
  • LOSSLESS_WEBP:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE) is permitted
      • Image/Pixel Types == (RGB, MULTIBAND) are only permitted with
          • Data/Sample Type == UINT8
  • CCITTFAX4:
    • yesie's:
      • Data/Sample Types == 1-BIT is permitted
      • Image/Pixel Types == MONOCHROME is permitted
  • CHARLS:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE,RGB) are permitted
      • Image/Pixel Types == (MULTIBAND,DATAGRID) are only permitted with
        • for bands (== 3 or 4)
          • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • Data/Sample Types == (1-BIT,UINT32, DOUBLE and FLOAT) are not permitted
  • PNG:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE,RGB) are permitted
      • Image/Pixel Types == (MULTIBAND,DATAGRID) are only permitted with
        • for bands (== 3 or 4)
          • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • Data/Sample Types == (UINT32, DOUBLE and FLOAT) are not permitted
  • LOSSY_JP2:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE,RGB) are permitted
      • Image/Pixel Types == (MULTIBAND,DATAGRID) are only permitted with
        • for bands (== 3 or 4)
          • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • Data/Sample Types == (1-BIT,UINT32, DOUBLE and FLOAT) are not permitted
  • LOSSLESS_JP2:
    • yesie's:
      • Image/Pixel Types == (GRAYSCALE,RGB) are permitted
      • Image/Pixel Types == (MULTIBAND,DATAGRID) are only permitted with
        • for bands (== 3 or 4)
          • Data/Sample Types == (UINT8 and UINT16)
    • no-no's:
      • Data/Sample Types == (1-BIT,UINT32, DOUBLE and FLOAT) are not permitted

2015-08-30: Mark Johnson, Berlin Germany