Skip to content

Commit

Permalink
r.out.gdal add bigtiff docs (OSGeo#28)
Browse files Browse the repository at this point in the history
* Add a note on BIGTIFF

* Add a BIGTIFF example

* typo

* grammar
  • Loading branch information
ninsbl authored Jun 5, 2019
1 parent b300e66 commit b5706b7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions raster/r.out.gdal/r.out.gdal.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ <h3>GeoTIFF caveats</h3>
<!-- GDAL switched default from BAND to PIXEL interleave on 08/01/07 (r11823) -->
This issue only arises when writing out multi-band imagery groups.

<p>Classic TIFF format supports only files with up to 4GB. Files that
exceed this limit (in compressed or uncompressed form) need to be
exported with <em>createopt="BIGTIFF=YES"</em>. BIGTIFF is available if
GDAL is built with libtiff >= 4.0.

<h3>Improving GeoTIFF compatibility</h3>

To create a GeoTIFF that is highly compatible with various other GIS
Expand Down Expand Up @@ -198,6 +203,14 @@ <h3>Export a raster map in "Deflate" compressed GeoTIFF format</h3>
r.out.gdal in=elevation output=elevation.tif createopt="COMPRESS=DEFLATE"
</pre></div>

<h3>Export a large raster map in LZW compressed (Big) GeoTIFF format</h3>

<div class="code"><pre>
g.region raster=elevation -p
# Using PREDICTOR 2 or 3 (the latter mainly 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>

<h3>Export a raster map with internal overview in "Deflate" compressed GeoTIFF format</h3>

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

0 comments on commit b5706b7

Please sign in to comment.