Explorar el Código

r.out.gdal manual: fix LZW export example

- GeoTIFF BIGTIFF export: fixes LZW with `PREDICTOR` example as INT (CELL) export requires `PREDICTOR=2`
Markus Neteler hace 4 años
padre
commit
55ba3297f6
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      raster/r.out.gdal/r.out.gdal.html

+ 7 - 2
raster/r.out.gdal/r.out.gdal.html

@@ -218,8 +218,14 @@ r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=DEFLATE"
 <h3>Export a large raster map in LZW compressed (Big) GeoTIFF format</h3>
 <h3>Export a large raster map in LZW compressed (Big) GeoTIFF format</h3>
 
 
 <div class="code"><pre>
 <div class="code"><pre>
+# integer map export
+g.region raster=zipcodes -p
+# Using PREDICTOR 2 for integer maps can further reduce file size
+r.out.gdal in=zipcodes output=zipcodes.tif createopt="COMPRESS=LZW,PREDICTOR=2,BIGTIFF=YES"
+
+# floating point map export
 g.region raster=elevation -p
 g.region raster=elevation -p
-# Using PREDICTOR 2 or 3 (the latter mainly for floating point data) can further reduce file size
+# Using PREDICTOR 3 for floating point data can further reduce file size
 r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=LZW,PREDICTOR=3,BIGTIFF=YES"
 r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=LZW,PREDICTOR=3,BIGTIFF=YES"
 </pre></div>
 </pre></div>
 
 
@@ -231,7 +237,6 @@ g.region raster=elevation -p
 r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=DEFLATE" overviews=5
 r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=DEFLATE" overviews=5
 </pre></div>
 </pre></div>
 
 
-
 <h3>Export R,G,B imagery bands in GeoTIFF format suitable for ESRI software</h3>
 <h3>Export R,G,B imagery bands in GeoTIFF format suitable for ESRI software</h3>
 
 
 <div class="code"><pre>
 <div class="code"><pre>