Writes the level-0 pixels of a .vec raster to a GeoTIFF file. The
TIFF inherits dtype, geotransform, EPSG, and nodata from the source.
Strip layout; the writer supports "none", "deflate", and "lzw"
compression. LZW also applies horizontal differencing (Predictor 2)
for integer pixel types, which dramatically improves compression on
smooth raster data and matches the layout most production GIS tools
produce by default. Tiled and BigTIFF output land in a follow-up.
Usage
vec_to_tiff(r, path, compression = c("deflate", "lzw", "none"))Arguments
- r
Either a path to a
.vecraster or avectra_rasterreturned byvec_open_raster(). If a handle is passed it is left open.- path
Output
.tifpath.- compression
One of
"deflate"(default),"lzw", or"none".