Learn R Programming

vectra (version 0.6.2)

vec_to_tiff: Export a .vec raster to GeoTIFF

Description

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"))

Value

Invisible NULL.

Arguments

r

Either a path to a .vec raster or a vectra_raster returned by vec_open_raster(). If a handle is passed it is left open.

path

Output .tif path.

compression

One of "deflate" (default), "lzw", or "none".