Artifact [7ea9a9d486]
Not logged in

Artifact 7ea9a9d4867fe3e4250469057095a461bb1ea38f:

Wiki page [reference_table] by sandro 2014-03-26 22:08:08.
D 2014-03-26T22:08:08.925
L reference_table
P 3bde308317021fbdc19a3f4ef84b3fa682037b80
U sandro
W 11463
Back to <a href="https://www.gaia-gis.it/fossil/librasterlite2/wiki?name=rasterlite2-doc">RasterLite2 doc index</a><hr><br>
<h1>Supported sample types</h1>
<table width="100%" border="1" bgcolor="#fffff0" cellpadding="6" cellspacing="4">
<tr><th bgcolor="#f0f0f0">Family</th><th bgcolor="#f0f0f0">Bits</th><th bgcolor="#f0f0f0">Mnemonic</th><th bgcolor="#f0f0f0">Notes</th></tr>
<tr><td rowspan="6" align="center">Unsigned Integer</td>
<td align="center">1</td>
<td align="center"><b>1-BIT</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 1</td></tr>
</table></td></tr>
<tr><td align="center">2</td>
<td align="center"><b>2-BIT</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 3</td></tr>
</table></td></tr>
<tr><td align="center">4</td>
<td align="center"><b>4-BIT</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 15</td></tr>
</table></td></tr>
<tr><td align="center">8</td>
<td align="center"><b>UINT8</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 255</td></tr>
</table></td></tr>
<tr><td align="center">16</td>
<td align="center"><b>UINT16</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 65,535</td></tr>
</table></td></tr>
<tr><td align="center">32</td>
<td align="center"><b>UINT32</b></td>
<td><table>
<tr><td>Min value: 0</td></tr>
<tr><td>Min value: 4,294,967,295</td></tr>
</table></td></tr>
<tr><td rowspan="3" align="center">Signed Integer</td>
<td align="center">8</td>
<td align="center"><b>INT8</b></td>
<td><table>
<tr><td>Min value: -128</td></tr>
<tr><td>Min value: 127</td></tr>
</table></td></tr>
<tr><td align="center">16</td>
<td align="center"><b>INT16</b></td>
<td><table>
<tr><td>Min value: -32,768</td></tr>
<tr><td>Min value: 32,767</td></tr>
</table></td></tr>
<tr><td align="center">32</td>
<td align="center"><b>INT32</b></td>
<td><table>
<tr><td>Min value: -2,147,483,648</td></tr>
<tr><td>Min value: 2,147,483,647</td></tr>
</table></td></tr>
<tr><td rowspan="2" align="center">Floating Point</td>
<td align="center">32</td>
<td align="center"><b>FLOAT</b></td>
<td><table>
<tr><td>Min value: -3.402823e+038</td></tr>
<tr><td>Min value: 3.402823e+038</td></tr>
</table></td></tr>
<tr><td align="center">64</td>
<td align="center"><b>DOUBLE</b></td>
<td><table>
<tr><td>Min value: -1.797693e+308</td></tr>
<tr><td>Min value: 1.797693e+308</td></tr>
</table></td></tr>
</table><br>
<hr>
<h1>Supported pixel types</h1>
<table width="100%" border="1" bgcolor="#fffff0" cellpadding="6" cellspacing="4">
<tr><th bgcolor="#f0f0f0">Mnemonic</th><th bgcolor="#f0f0f0">Bands</th><th bgcolor="#f0f0f0">Sample type</th><th bgcolor="#f0f0f0">Notes</th></tr>
<tr><td align="center"><b>MONOCHROME</b></td>
<td align="center">1</td>
<td align="center"><b>1-BIT</b></td>
<td>the implicit photometric interpretation always is:
<ul>
<li><b>0</b>: full transparent</li>
<li><b>1</b>: black, opaque</li>
</td></tr>
<tr><td align="center"><b>PALETTE</b></td>
<td align="center">1</td>
<td align="center"><b>1-BIT</b><br><b>2-BIT</b><br><b>4-BIT</b><br><b>UINT8</b></td>
<td>the implicit photometric interpretation is always the one defined by the Palette Color associated to the Raster Coverage.<br>
This actually corresponds to an RGB output image, the color of each pixel being indirectly determined by its palette index.
</td></tr>
<tr><td align="center"><b>GRAYSCALE</b></td>
<td align="center">1</td>
<td align="center"><b>2-BIT</b><br><b>4-BIT</b><br><b>UINT8</b></td>
<td>the implicit photometric interpretation is always of the Grayscale type.<br>
<b>0</b> always corresponds to full black, and the max value to full white.
</td></tr>
<tr><td align="center"><b>RGB</b></td>
<td align="center">3</td>
<td align="center"><b>UINT8</b><br><b>UINT16</b></td>
<td>the implicit photometric interpretation is always of the RGB type.
</td></tr>
<tr><td align="center"><b>MULTIBAND</b></td>
<td align="center">&gt; 1<br>&lt; 256</td>
<td align="center"><b>UINT8</b><br><b>UINT16</b></td>
<td>there is no implicit photometric interpretation.
</td></tr>
<tr><td align="center"><b>DATAGRID</b></td>
<td align="center">1</td>
<td align="center"><b>INT8</b><br><b>UINT8</b><br><b>INT16</b><br><b>UINT16</b><br><b>INT32</b><br><b>UINT32</b><br><b>FLOAT</b><br><b>DOUBLE</b></td>
<td>there is no implicit photometric interpretation.
</td></tr>
</table><br>
<hr>
<h1>Supported compression algorithms</h1>
<table width="100%" border="1" bgcolor="#fffff0" cellpadding="6" cellspacing="4">
<tr><th bgcolor="#f0f0f0">Mnemonic</th><th bgcolor="#f0f0f0">Compression type</th><th bgcolor="#f0f0f0">Notes</th></tr>
<tr><td align="center"><b>NONE</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>no compression at all: simply an array of tightly packed values.
</td></tr>
<tr><td align="center"><b>DEFLATE</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>a general purpose compression algorithm used by ZIP archives and implemented by <a href="http://en.wikipedia.org/wiki/Zlib">zlib</a>.<br>
You can find more detailed information about this algorithm <a href="http://en.wikipedia.org/wiki/DEFLATE">here</a>.
</td></tr>
<tr><td align="center"><b>LZMA</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>an advanced general purpose compression algorithm used by 7-ZIP archives and implemented by <a href="http://en.wikipedia.org/wiki/XZ_Utils">liblzma</a>.<br>
You can find more detailed information about this algorithm <a href="http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Markov_chain_algorithm">here</a>.<br>
<u>Please note</u>: this algorithm is very slow while compressing, but is reasonably fast while decompressing; and usually ensures better compression ratios than DEFLATE.</li>
</td></tr>
<tr><td align="center"><b>FAX4</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>an highly specialized compression algorithm only supporting monochrome images initially developed for fax machines: implemented by <a href="http://en.wikipedia.org/wiki/Libtiff">libtiff</a>.
You can find more detailed information about this algorithm <a href="http://en.wikipedia.org/wiki/Group_4_compression">here</a>.
</td></tr>
<tr><td align="center"><b>PNG</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>a very popular general purpose image format supporting RGB, Grayscale and Palette-based colorspaces and fully supporting transparencies. Implemented by <a href="http://en.wikipedia.org/wiki/Libpng">libpng</a>.<br>
You can find more detailed information about this compressed format <a href="http://en.wikipedia.org/wiki/Portable_Network_Graphics">here</a>.
</td></tr>
<tr><td align="center"><b>JPEG</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossy_compression">lossy</a></b></td>
<td>an universally spread photographic image format supporting RGB and Grayscale colorspaces but completely lacking of any transparency support. Implemented by <a href="http://en.wikipedia.org/wiki/Libjpeg">libjpeg</a>.<br>
You can find more detailed information about this compressed format <a href="http://en.wikipedia.org/wiki/JPEG">here</a>.
</td></tr>
<tr><td align="center"><b>WEBP</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossy_compression">lossy</a></b></td>
<td>an innovative photographic image format supporting RGB and Grayscale colorspaces and fully supporting transparencies. Implemented by <a href="https://code.google.com/p/webp/downloads/detail?name=libwebp-0.4.0.tar.gz">libwebp</a>.<br>
You can find more detailed information about this compressed format <a href="http://en.wikipedia.org/wiki/WebP">here</a>.<br>
<u>Please note</u>: 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.</li>
</td></tr>
<tr><td align="center"><b>LL_WEBP</b></td>
<td align="center"><a href="http://en.wikipedia.org/wiki/Lossless_data_compression">lossless</a></b></td>
<td>exactly the same of the previous one, but in <b><i>lossless</i></b> mode.<br>
This usually means accepting very low compression ratios (about 1:2).
</td></tr>
</table><br>
<hr>
<h1>Pixel / Sample / Compression compatibility chart</h1>
<table width="100%" cellpadding="6" cellspacing="4">
<tr><th rowspan="2"</th>
<th bgcolor="#d0d0d0" valign="top">MONOCHROME</th>
<th bgcolor="#d0d0d0" valign="top">PALETTE</th>
<th bgcolor="#d0d0d0" valign="top">GRAYSCALE</th>
<th bgcolor="#d0d0d0" valign="top" colspan="2">RGB</th>
<th bgcolor="#d0d0d0" valign="top">MULTIBAND</th>
<th bgcolor="#d0d0d0" valign="top">DATAGRID</th></tr>
<tr><th bgcolor="#e0e0d0" valign="top">1-BIT</b></th>
<th bgcolor="#e0e0d0" valign="top">1-BIT<br>2-BIT<br>4-BIT<br>UINT8</th>
<th bgcolor="#e0e0d0" valign="top">2-BIT<br>4-BIT<br>UINT8</th>
<th bgcolor="#e0e0d0" valign="top">UINT8</th>
<th bgcolor="#e0e0d0" valign="top">UINT16</th>
<th bgcolor="#e0e0d0" valign="top">UINT8<br>UINT16</th>
<th bgcolor="#e0e0d0" valign="top">INT8<br>UINT8<br>INT16<br>UINT16<br>
INT32<br>UINT32<br>FLOAT<br>DOUBLE</th></tr>
<tr><th bgcolor="#d0d0d0">NONE</th>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
</tr>
<tr><th bgcolor="#d0d0d0">DEFLATE</th>
<td></td><td></td><td></td><td></td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
</tr>
<tr><th bgcolor="#d0d0d0">LZMA</th>
<td></td><td></td><td><td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
</tr>
<tr><th bgcolor="#d0d0d0">FAX4</th>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td></td><td></td><td></td><td></td><td></td><td></td>
</tr>
<tr><th bgcolor="#d0d0d0">PNG</th>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td></td><td></td><td></td>
</tr>
<tr><th bgcolor="#d0d0d0">JPEG</th>
<td></td><td></td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td></td><td></td><td></td>
</tr>
<tr><th bgcolor="#d0d0d0">WEBP</th>
<td></td><td></td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td></td><td></td><td></td>
</tr>
<tr><th bgcolor="#d0d0d0">LL_WEBP</th>
<td></td><td></td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td bgcolor="#d0ffd0" align="center">yes</td>
<td></td><td></td><td></td>
</tr>
</table>
<br><br><hr>
Back to <a href="https://www.gaia-gis.it/fossil/librasterlite2/wiki?name=rasterlite2-doc">RasterLite2 doc index</a>
Z 0f001b66b84dc522ae78136f15e7e03d