Selaa lähdekoodia

r.compress: example with GRASS_COMPRESSOR

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67896 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 9 vuotta sitten
vanhempi
commit
d761ad4c92
1 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 13 1
      raster/r.compress/r.compress.html

+ 13 - 1
raster/r.compress/r.compress.html

@@ -24,7 +24,7 @@ it was RLE compressed, the raster map became only 1249 bytes
 <p>
 <p>
 Raster maps that are already compressed are again compressed. This is 
 Raster maps that are already compressed are again compressed. This is 
 useful if either the compression method set with the environment 
 useful if either the compression method set with the environment 
-variable <b>GRASS_COMPRESSOR</b> (RLE, ZLIB, LZ4, BZiP2) is changed or 
+variable <b>GRASS_COMPRESSOR</b> (RLE, ZLIB, LZ4, BZIP2) is changed or 
 if the ZLIB compression level is manually changed by setting the 
 if the ZLIB compression level is manually changed by setting the 
 environment variable GRASS_ZLIB_LEVEL.
 environment variable GRASS_ZLIB_LEVEL.
 
 
@@ -137,6 +137,18 @@ r.compress compressed_ZLIB -p
 unset GRASS_INT_ZLIB
 unset GRASS_INT_ZLIB
 </pre></div>
 </pre></div>
 
 
+<p>
+Applying BZIP2 compression to a copy of the ZLIB-compressed map:
+<div class="code"><pre>
+# compression of map using BZIP2 compression
+g.copy raster=compressed_ZLIB,compressed_BZIP2
+
+export GRASS_COMPRESSOR=BZIP2 # BZIP2
+r.compress compressed_BZIP2
+r.compress compressed_BZIP2 -p
+  &lt;compressed_BZIP2&gt; is compressed (method 4: BZIP2). Data type: &lt;CELL&gt;
+unset GRASS_COMPRESSOR
+</pre></div>
 
 
 <h2>SEE ALSO</h2>
 <h2>SEE ALSO</h2>