Skip to content

Commit

Permalink
r.out.gdal manual: fix LZW export example
Browse files Browse the repository at this point in the history
- GeoTIFF BIGTIFF export: fixes LZW with `PREDICTOR` example as INT (CELL) export requires `PREDICTOR=2`
  • Loading branch information
neteler committed May 4, 2021
1 parent 00deaba commit 84bab99
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions raster/r.out.gdal/r.out.gdal.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,14 @@ <h3>Export a raster map in "Deflate" compressed GeoTIFF format</h3>
<h3>Export a large raster map in LZW compressed (Big) GeoTIFF format</h3>

<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
# 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"
</pre></div>

Expand All @@ -231,7 +237,6 @@ <h3>Export a raster map with internal overview in "Deflate" compressed GeoTIFF f
r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=DEFLATE" overviews=5
</pre></div>


<h3>Export R,G,B imagery bands in GeoTIFF format suitable for ESRI software</h3>

<div class="code"><pre>
Expand Down

0 comments on commit 84bab99

Please sign in to comment.