Artifact [3bde308317]
Not logged in

Artifact 3bde308317021fbdc19a3f4ef84b3fa682037b80:

Wiki page [reference_table] by sandro 2014-03-26 20:59:26.
D 2014-03-26T20:59:26.596
L reference_table
P 9d2ecbe4e05dbe15a02ffed4caca392a8763a791
U sandro
W 7003
Back to <a href="https://www.gaia-gis.it/fossil/librasterlite2/wiki?name=rasterlite2-doc">RasterLite2 doc index</a><hr><br>

<h1>Work in progress</h1>

<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>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><br>
<u>Please note</u>: this algorithm is very slow while compressing, but is reasonably fast while decompressing; and usually ensurees 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>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 the someway obsolete <a href="http://en.wikipedia.org/wiki/Libjpeg">libjpeg</a>.<br>
You can find more detailed information about this algorithm <a href="http://en.wikipedia.org/wiki/JPEG">here</a>.
</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 e355ba5e16a170b9b8ff15169f1a0b9a