Update of "reference_table"
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 0737b4eff56e9dd7f1ccc1b2770f1cf52ab15e7c
Page Name:reference_table
Date: 2014-07-29 16:01:10
Original User: sandro
Parent: 7ea9a9d4867fe3e4250469057095a461bb1ea38f (diff)
Next 679c39fb290a17aab3c11b3266d81efec04d2496
Content

Back to RasterLite2 doc index



Supported sample types

FamilyBitsMnemonicNotes
Unsigned Integer 1 1-BIT
Min value: 0
Min value: 1
2 2-BIT
Min value: 0
Min value: 3
4 4-BIT
Min value: 0
Min value: 15
8 UINT8
Min value: 0
Min value: 255
16 UINT16
Min value: 0
Min value: 65,535
32 UINT32
Min value: 0
Min value: 4,294,967,295
Signed Integer 8 INT8
Min value: -128
Min value: 127
16 INT16
Min value: -32,768
Min value: 32,767
32 INT32
Min value: -2,147,483,648
Min value: 2,147,483,647
Floating Point 32 FLOAT
Min value: -3.402823e+038
Min value: 3.402823e+038
64 DOUBLE
Min value: -1.797693e+308
Min value: 1.797693e+308


Supported pixel types

MnemonicBandsSample typeNotes
MONOCHROME 1 1-BIT the implicit photometric interpretation always is:
  • 0: full transparent
  • 1: black, opaque
PALETTE 1 1-BIT
2-BIT
4-BIT
UINT8
the implicit photometric interpretation is always the one defined by the Palette Color associated to the Raster Coverage.
This actually corresponds to an RGB output image, the color of each pixel being indirectly determined by its palette index.
GRAYSCALE 1 2-BIT
4-BIT
UINT8
the implicit photometric interpretation is always of the Grayscale type.
0 always corresponds to full black, and the max value to full white.
RGB 3 UINT8
UINT16
the implicit photometric interpretation is always of the RGB type.
MULTIBAND > 1
< 256
UINT8
UINT16
there is no implicit photometric interpretation.
DATAGRID 1 INT8
UINT8
INT16
UINT16
INT32
UINT32
FLOAT
DOUBLE
there is no implicit photometric interpretation.


Supported compression algorithms

MnemonicCompression typeNotes
NONE lossless no compression at all: simply an array of tightly packed values.
DEFLATE lossless a general purpose compression algorithm used by ZIP archives and implemented by zlib.
You can find more detailed information about this algorithm here.
LZMA lossless an advanced general purpose compression algorithm used by 7-ZIP archives and implemented by liblzma.
You can find more detailed information about this algorithm here.
Please note: this algorithm is very slow while compressing, but is reasonably fast while decompressing; and usually ensures better compression ratios than DEFLATE.
FAX4 lossless an highly specialized compression algorithm only supporting monochrome images initially developed for fax machines: implemented by libtiff. You can find more detailed information about this algorithm here.
PNG lossless a very popular general purpose image format supporting RGB, Grayscale and Palette-based colorspaces and fully supporting transparencies. Implemented by libpng.
You can find more detailed information about this compressed format here.
JPEG lossy an universally spread photographic image format supporting RGB and Grayscale colorspaces but completely lacking of any transparency support. Implemented by libjpeg.
You can find more detailed information about this compressed format here.
WEBP lossy an innovative photographic image format supporting RGB and Grayscale colorspaces and fully supporting transparencies. Implemented by libwebp.
You can find more detailed information about this compressed format here.
Please note: this algorithm is very slow while compressing, but is reasonably fast while decompressing; and usually ensures slightly better compression ratios than JPEG at the same quality level.
LL_WEBP lossless exactly the same of the previous one, but in lossless mode.
This usually means accepting very low compression ratios (about 1:2).


Pixel / Sample / Compression compatibility chart

MONOCHROME PALETTE GRAYSCALE RGB MULTIBAND DATAGRID
1-BIT 1-BIT
2-BIT
4-BIT
UINT8
2-BIT
4-BIT
UINT8



for Grayscale 16bit please see:
DATAGRID UINT16
UINT8 UINT16 UINT8
UINT16
INT8
UINT8
INT16
UINT16
INT32
UINT32
FLOAT
DOUBLE
NONE yes yes yes yes yes yes yes
DEFLATE yes yes yes
LZMA yes yes yes
FAX4 yes
PNG yes yes yes yes
JPEG yes yes
WEBP yes yes
LL_WEBP yes yes


Multi-resolution Pyramid levels configuration

Pixel typeBase level
full resolution
Upper levels
rescaled
Notes
MONOCHROME1-BITGRAYSCALE UINT8
compression PNG
applying an high-quality halftone interpolation rescaling/downsampling algorithm ensures a better visual quality but imposes a change in color model.
PALETTE1-BITRGB UINT8
compression PNG
same as above
2-BITRGB UINT8
compression PNG
same as above
4-BITRGB UINT8
compression PNG
same as above
UINT8RGB UINT8
compression JPEG
same as above
GRAYSCALE2-BITGRAYSCALE UINT8
compression JPEG
same as above
4-BITGRAYSCALE UINT8
compression JPEG
same as above
UINT8GRAYSCALE UINT8
compression JPEG
RGBUINT8RGB UINT8
compression JPEG
UINT16RGB UINT16
compression DEFLATE
MULTIBANDUINT8MULTIBAND UINT8
compression DEFLATE
UINT16MULTIBAND UINT16
compression DEFLATE
DATAGRIDINT8MULTIBAND INT8
compression DEFLATE
UINT8MULTIBAND UINT8
compression DEFLATE
INT16MULTIBAND INT16
compression DEFLATE
UINT16MULTIBAND UINT16
compression DEFLATE
INT32MULTIBAND INT32
compression DEFLATE
UINT32MULTIBAND UINT32
compression DEFLATE
FLOATMULTIBAND FLOAT
compression DEFLATE
DOUBLEMULTIBAND DOUBLE
compression DEFLATE
  1. the same identical PixelType and SampleType are adopted for both base-level and upper rescaled-levels whenever is possible.
  2. except when a change in the color space is strictly required by high-quality rescaling/downsampling algorithm supporting halftone interpolation.
  3. all upper Pyramid levels (rescaled) are always implicitly compressed: these are always heavily reworked levels, so there is any real need to carefully preserve all input data exactly as they originally were.



Back to RasterLite2 doc index